UpdateDeserializationStrategy

Use this object to deserialize objects with type Update. Currently it is restricted to use this DeserializationStrategy only with JSON

See also

StringFormat.parse
kotlinx.serialization.json.Json.parse

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
open override val descriptor: SerialDescriptor

Functions

Link copied to clipboard
open override fun deserialize(decoder: Decoder): Update

Trying to get JsonElement if decoder is JsonDecoder. Then it will use defaultDeserializeCallback to deserialize data. In case if defaultDeserializeCallback will throw exception it will firstly try to deserialize data by strategies from customDeserializationStrategies and, if no one will return presented data in Optional it will use fallbackDeserialization as last option to deserialize data