![]() ![]() If you’re not sure about consistency of values in json, using JSON.nonstrict might be a good idea to avoid exceptions Class variables can have different names than the name of key in json. ![]() In contrary to PolymorphicSerializer, all known subclasses with. With Kotlin serialization, any class that we want to serialize should be explicitly marked with the Serializable annotation, which instructs the Kotlin. parse ( "" ) // This will break as "favorite" is not recognised by serializer This class provides support for multiplatform polymorphic serialization of sealed classes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |