ankushg
08/21/2019, 2:20 AMdata class MyClass(val foo: String) that I can conveniently retrive from dynamic JS by using DynamicObjectParser().parse(js("""{ foo: "bar" }"""), MyClass.serializer()).
Is there a way that I can do the opposite, going from an instance of MyClass to a dynamic type JS blob { foo: "bar" }? The goal is to be able to call into the Kotlin/JS artifact from real-JS and be able to predictably interact with the output without having extra bits of data on it.
I can get to a Map<String, Any?> using Mapper.mapNullable(MyClass.serializer(), instance), but I'm not sure if there's a step that I'm missing after that...Fudge
08/21/2019, 9:57 AMstringifyankushg
08/21/2019, 1:10 PM