findPolymorphicSerializerOrNull

open override fun findPolymorphicSerializerOrNull(decoder: CompositeDecoder, klassName: String?): DeserializationStrategy<out T>?

Lookups an actual serializer for given klassName withing the current base class. May use context from the decoder.


open override fun findPolymorphicSerializerOrNull(encoder: Encoder, value: T): SerializationStrategy<T>?

Lookups an actual serializer for given value within the current base class. May use context from the encoder.