of
open fun <T> of(baseType: Class<T>, typeFieldName: String, maintainType: Boolean): RuntimeTypeAdapterFactory<T>
Creates a new runtime type adapter using for baseType using
typeFieldName as the type field name. Type field names are case sensitive.
Parameters
maintainType
true if the type field should be included in deserialized objects
Creates a new runtime type adapter using for baseType using
typeFieldName as the type field name. Type field names are case sensitive.
Creates a new runtime type adapter for baseType using "type" as the type field name.