DiscriminatorField

data class DiscriminatorField(val codecName: String, val dispatchPackage: String, val dispatchCodecSimpleName: String) : FieldReadStrategy

Field populated from @DispatchOn context during decode, written normally during encode.

Parameters

codecName

the generated codec name for the discriminator type (e.g., "PngChunkHeaderCodec")

dispatchPackage

the package of the sealed dispatch codec

dispatchCodecSimpleName

the simple name of the dispatch codec (e.g., "PngChunkCodec")

Constructors

Link copied to clipboard
constructor(codecName: String, dispatchPackage: String, dispatchCodecSimpleName: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard