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.
Accept a provider, associated with generic kClass for contextual serialization.
Accept a serializer, associated with kClass for contextual 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
useArrayPolymorphism set to