encodeStructure
inline fun Encoder.encodeStructure(descriptor: SerialDescriptor, crossinline block: CompositeEncoder.() -> Unit)
Begins a structure, encodes it using the given block and ends it.
Begins a structure, encodes it using the given block and ends it.