with Subtype
open fun withSubtype(subtype: Class<out T>, label: String): PolymorphicJsonAdapterFactory<T>
Content copied to clipboard
Returns a new factory that decodes instances of {@code subtype}.
Returns a new factory that decodes instances of {@code subtype}.