Contents

nestedContainer(keyedBy:)

Decodes a nested container keyed by the given type.

Declaration

mutating func nestedContainer<NestedKey>(keyedBy type: NestedKey.Type) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey

Parameters

  • type:

    The key type to use for the container.

Return Value

A keyed decoding container view into self.

Discussion