kson icon indicating copy to clipboard operation
kson copied to clipboard

Gson TypeAdapter & Factory generator for Kotlin data classes

Results 2 kson issues
Sort by recently updated
recently updated
newest added

`gson-extras` has such class: https://github.com/google/gson/blob/master/extras/src/main/java/com/google/gson/typeadapters/RuntimeTypeAdapterFactory.java which is helpful for polymorphic types serialization without reflection. For example, it can be used to handle Kotlin sealed class serialization: ``` sealed class Shape...

```kotlin data class Entity(@JsonAdapter(CustomAdapter:class) val id: Int) ```

enhancement