serialize

open override fun serialize(encoder: Encoder, value: T)

Trying to serialize data by defaultSerializeCallback. If defaultSerializeCallback it will try to use each strategy from customSerializationStrategies until one of them will return true (means, serialized). If there are no any strategy success serialization and defaultSerializeCallback thrown exception will be used fallbackSerialization callback