polymorphicDefaultSerializer

abstract fun <Base : Any> polymorphicDefaultSerializer(baseClass: KClass<Base>, defaultSerializerProvider: (value: Base) -> SerializationStrategy<Base>?)

Accept a default serializer provider, associated with the baseClass for polymorphic serialization.

This will not affect deserialization.

See also

PolymorphicModuleBuilder.defaultSerializer