CallbacksCustomizableDeserializationStrategy

open class CallbacksCustomizableDeserializationStrategy<T>(val descriptor: SerialDescriptor, defaultDeserializeCallback: (decoder: Decoder, jsonElement: JsonElement?) -> T, defaultSerializeCallback: (encoder: Encoder, value: T) -> Unit, fallbackDeserialization: (initialException: Throwable, decoder: Decoder, jsonElement: JsonElement?) -> T = { initialException, _, _ -> throw initialException }, fallbackSerialization: (initialException: Throwable, encoder: Encoder, value: T) -> T = { initialException, _, _ -> throw initialException }) : CustomizableSerializer<T> , CustomizableSerializationStrategy<T> , CustomizableDeserializationStrategy<T>

Combines CallbackCustomizableSerializationStrategy and CallbackCustomizableDeserializationStrategy

Constructors

constructor(descriptor: SerialDescriptor, defaultDeserializeCallback: (decoder: Decoder, jsonElement: JsonElement?) -> T, defaultSerializeCallback: (encoder: Encoder, value: T) -> Unit, fallbackDeserialization: (initialException: Throwable, decoder: Decoder, jsonElement: JsonElement?) -> T = { initialException, _, _ -> throw initialException }, fallbackSerialization: (initialException: Throwable, encoder: Encoder, value: T) -> T = { initialException, _, _ -> throw initialException })

Properties

Link copied to clipboard

Contains JsonDeserializerStrategy which will be used in deserialize method when standard RawUpdate serializer will be unable to create RawUpdate (and Update as well)

Link copied to clipboard

Contains CustomSerializerStrategy which will be used in Serialize method when standard RawUpdate serializer will be unable to create RawUpdate (and Update as well)

Link copied to clipboard
open override val descriptor: SerialDescriptor

Functions

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