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. maintainType flag decide if the type will be stored in pojo or not.


open fun <T> of(baseType: Class<T>, typeFieldName: String): RuntimeTypeAdapterFactory<T>

Creates a new runtime type adapter using for baseType using typeFieldName as the type field name. Type field names are case sensitive.


open fun <T> of(baseType: Class<T>): RuntimeTypeAdapterFactory<T>

Creates a new runtime type adapter for baseType using "type" as the type field name.