Static Method (Default implementation)swift 6.0.3FoundationEssentials

encode(_:to:)

iOS
15+
macOS
12+
tvOS
15+
watchOS
8+
static func encode(_ value: Self.Value, to encoder: any Encoder) throws