Required Instance Methodswift 6.0.1Swift

    nestedContainer(keyedBy:)

    Decodes a nested container keyed by the given type.

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

    Parameters

    type

    The key type to use for the container.

    Returns

    A keyed decoding container view into self.

    Throws

    DecodingError.typeMismatch if the encountered stored value is not a keyed container.

    Other requirements

    Instance members