encodeStructure

inline fun Encoder.encodeStructure(descriptor: SerialDescriptor, crossinline block: CompositeEncoder.() -> Unit)(source)

Begins a structure, encodes it using the given block and ends it.