polymorphicDefaultDeserializer
open override fun <Base : Any> polymorphicDefaultDeserializer(baseClass: KClass<Base>, defaultDeserializerProvider: (className: String?) -> DeserializationStrategy<out Base>?)
Content copied to clipboard
Adds a default deserializers provider associated with the given baseClass to the resulting module. defaultDeserializerProvider is invoked when no polymorphic serializers associated with the className
were found. className
could be null
for formats that support nullable class discriminators (currently only Json
with useArrayPolymorphism
set to false
).
This will not affect serialization.