CallbackCustomizableSerializationStrategy

constructor(    descriptor: SerialDescriptor,     defaultSerializeCallback: (encoder: Encoder, value: T) -> Unit,     fallbackSerialization: (initialException: Throwable, encoder: Encoder, value: T) -> T = { initialException, _, _ -> throw initialException })

Parameters

defaultSerializeCallback

Default way of serialization

fallbackSerialization

Fallback way which will be used in case when defaultSerializeCallback and customSerializationStrategies were unable to serialize data