ankushg
01/23/2019, 12:00 AMJson
interface? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.js/-json/index.html
Is this something that kotlinx.serialization
supports?
I'm trying to create a wrapper around my Kotlin library so that I can pass in JS objects (i.e., {foo: "bar"}
and then convert the resulting Json
object into an instance of data class MyDataClass(val foo: String)
, and vice versa when returning an instance of MyDataClass
from Kotlin to JSgildor
01/23/2019, 2:04 AMankushg
01/23/2019, 3:48 PM