encode(to:)
Serializes an object to the specified encoder.
Declaration
func encode(to encoder: any Encoder) throwsParameters
- encoder:
An encoder that the object serializes to.
Serializes an object to the specified encoder.
func encode(to encoder: any Encoder) throwsAn encoder that the object serializes to.