To run the code from this chapter, you need to install the serialization plugin for IntelliJ IDEA. Use this link and the following steps to download the latest version: https://bintray.com/kotlin/kotlinx/kotlinx.serialization.plugin:
- To install this plugin, you should open Preferences | Plugins | INSTALL PLUGIN FROM DISK...:
- Choose the downloaded .zip archive and press Apply.
You should also add the following line in the repositories section of the build.gradle file:
maven { url "https://kotlin.bintray.com/kotlinx" }
In addition, you should add this line to the dependencies section:
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.6.1"
You can find examples from this chapter on GitHub at: https://github.com/PacktPublishing/Hands-On-Object-Oriented-Programming-with-Kotlin/tree/master/src/main/kotlin/Chapter09...