serialize

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

Serializes the value of type T using the format represented by the encoder.