Generic Instance Method 総称体インスタンスメソッド

nestedContainer(keyedBy:forKey:)

Returns the data stored for the given key as represented in a container keyed by the given key type. 与えられたキーに対して格納されるデータを、与えられたキー型によってキー付けされるコンテナの中に表される通りに返します。

Declaration 宣言

func nestedContainer<NestedKey>(keyedBy type: NestedKey.Type, forKey key: Self.Key) throws -> KeyedDecodingContainer<NestedKey> where NestedKey : CodingKey

Parameters パラメータ

type

The key type to use for the container. コンテナに対して使うためのキー型。

key

The key that the nested container is associated with. 入れ子にされたコンテナが関連付けられるキー。

Return Value 戻り値

A keyed decoding container view into self. selfへのキー付きデコーディングコンテナビュー。