Contents

encode(to:)

Serializes an object to the specified encoder.

Declaration

func encode(to encoder: any Encoder) throws

Parameters

  • encoder:

    An encoder that the object serializes to.