josephivie
10/31/2018, 4:56 PMapply plugin: 'kotlin-multiplatform'
apply plugin: 'kotlinx-serialization'
I'm still getting the error Unresolved reference: serializer in my test:
@Serializable
data class Post(
var id: Long? = null,
var userId: Long = 0,
var title: String = "",
var body: String = ""
)
class JsonTest {
@Test fun serializationOnly(){
println(JSON.stringify(Post.serializer(), Post(title = "Title", body = "This is the test post.")))
}
Any ideas?