SerializersModuleCollector
SerializersModuleCollector can introspect and accumulate content of any SerializersModule via SerializersModule.dumpTo, using a visitor-like pattern: contextual and polymorphic functions are invoked for each registered serializer.
Not stable for inheritance
SerializersModuleCollector
interface is not stable for inheritance in 3rd party libraries, as new methods might be added to this interface or contracts of the existing methods can be changed.
Inheritors
Functions
Accept a provider, associated with generic kClass for contextual serialization.
Accept a serializer, associated with kClass for contextual serialization.
Accept a serializer, associated with actualClass for polymorphic serialization.
Accept a default deserializer provider, associated with the baseClass for polymorphic deserialization. defaultDeserializerProvider is invoked when no polymorphic serializers associated with the className
in the scope of baseClass were found. className
could be null
for formats that support nullable class discriminators (currently only Json
with useArrayPolymorphism
set to false
).
Accept a default serializer provider, associated with the baseClass for polymorphic serialization. defaultSerializerProvider is invoked when no polymorphic serializers for value
in the scope of baseClass were found.