type

abstract fun type(): Array<Class<out Any>>

The types that are handled by the provided serializer/deserializer. This attribute is mandatory for a KeyDeserializer, as the type cannot be inferred. For a JsonSerializer or JsonDeserializer it can be used to limit handling to a subclasses of type inferred from the generic.

Return

the types that should be handled by the component

Since

2.2.0