Contents

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 Encoder

Parameters

  • key:

    The key to encode super for.

Return Value

A new encoder to pass to super.encode(to:).