ExtensibleEventContentSerializer

open class ExtensibleEventContentSerializer<L : ExtensibleEventContent.Legacy, C : ExtensibleEventContent<L>>(val name: String, val contentFactory: (blocks: EventContentBlocks, legacy: L?) -> C, val legacySerializer: KSerializer<L>) : KSerializer<C>

Inheritors

Constructors

Link copied to clipboard
constructor(name: String, contentFactory: (blocks: EventContentBlocks, legacy: L?) -> C, legacySerializer: KSerializer<L>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val contentFactory: (blocks: EventContentBlocks, legacy: L?) -> C
Link copied to clipboard
open override val descriptor: SerialDescriptor
Link copied to clipboard
val legacySerializer: KSerializer<L>
Link copied to clipboard

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): C
Link copied to clipboard
open override fun serialize(encoder: Encoder, value: C)