of

open fun <T> of(baseType: Class<T>, labelKey: String): PolymorphicJsonAdapterFactory<T>

Parameters

baseType

The base type for which this factory will create adapters. Cannot be Object.

labelKey

The key in the JSON object whose value determines the type to which to map theJSON object.