Considering that each data entry has a string "typ...
# kotson
s
Considering that each data entry has a string "type", I would create a "data" class such as
data class Data<T>(val type: String, val id: String, val value: T)
and then register a typeAdapter for data with a mapping type <=> class. For example, when the type is "user", it would read the "attributes" object into a
User
object