of

static RuntimeTypeAdapterFactory<Tof<T>(Class<T> baseType, String typeFieldName, boolean maintainType)

Creates a new runtime type adapter using for {@code baseType} using {@code * typeFieldName} as the type field name. Type field names are case sensitive. {@code maintainType} flag decide if the type will be stored in pojo or not.

static RuntimeTypeAdapterFactory<Tof<T>(Class<T> baseType, String typeFieldName)

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

static RuntimeTypeAdapterFactory<Tof<T>(Class<T> baseType)

Creates a new runtime type adapter for {@code baseType} using {@code "type"} as the type field name.