toggle menu
ktgbotapi
common
switch theme
search in API
tgbotapi.core
/
dev.inmo.tgbotapi.utils.serializers
/
CallbackCustomizableDeserializationStrategy
/
CallbackCustomizableDeserializationStrategy
Callback
Customizable
Deserialization
Strategy
constructor
(
descriptor
:
SerialDescriptor
,
defaultDeserializeCallback
:
(
decoder
:
Decoder
,
jsonElement
:
JsonElement
?
)
->
T
,
fallbackDeserialization
:
(
initialException
:
Throwable
,
decoder
:
Decoder
,
jsonElement
:
JsonElement
?
)
->
T
=
{ initialException, _, _ -> throw initialException }
)