Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
class GenericEnumJsonAdapter<T> : JsonAdapter<T>() {
override fun fromJson(reader: JsonReader): T? {
// Cannot access enumValues<T>()
override fun toJson(writer: JsonWriter, value: T?) {
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment