Instance Method
encode(to:configuration:)
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Encodes the value into the specified encoder with help from the provided configuration.
func encode(to encoder: any Encoder, configuration: Self.EncodingConfiguration) throws
Parameters
encoderThe encoder to write data to.
configurationAn encoding configuration instance that provides additional information necessary for encoding.