superEncoder(forKey:)
Stores a new nested container for the given key and returns a new encoder instance for encoding super into that container.
Declaration
mutating func superEncoder(forKey key: Self.Key) -> any EncoderParameters
- key:
The key to encode
superfor.
Return Value
A new encoder to pass to super.encode(to:).