MosaicSerializer

constructor(tileSerializers: Map<KClass<out TileSchema>, KSerializer<out TileSchema>> = emptyMap(), eventSerializers: Map<KClass<out EventSchema>, KSerializer<out EventSchema>> = emptyMap(), eventTriggerSerializers: Map<KClass<out EventTrigger>, KSerializer<out EventTrigger>> = emptyMap(), additionalSerializersModule: SerializersModule = EmptySerializersModule())

Parameters

tileSerializers

third-party TileSchema registrations, merged with the built-in catalog.

eventSerializers

third-party EventSchema registrations, merged with the built-in catalog.

eventTriggerSerializers

third-party EventTrigger registrations, merged with the built-in catalog.

additionalSerializersModule

extra polymorphic serializers unrelated to the 3 hierarchies above — for a field type that itself needs its own serializer registration, independent of tile/event/trigger registration.