YamlFlatteningPolymorphicSerializer

open class YamlFlatteningPolymorphicSerializer<T : Any>(base: KClass<T>) : KSerializer<T> (source)

Polymorphic serializer that flattens type/value wrappers for yamlkt only. For all other formats, it delegates to the default polymorphic serializer unchanged.

Constructors

Link copied to clipboard
constructor(base: KClass<T>)

Properties

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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