Instance Method インスタンスメソッド

decode(_:forKey:)

Decodes a value of the given type for the given key. 指定された型の値を与えられたキーに対してデコードします。

Declaration 宣言

func decode(_ type: Bool.Type, forKey key: Self.Key) throws -> Bool

Parameters パラメータ

type

The type of value to decode. この型の値にデコードする。

key

The key that the decoded value is associated with. デコードされた値が関連付けられるキー。

Return Value 戻り値

A value of the requested type, if present for the given key and convertible to the requested type. 要請された型の値、もし与えられたキーに対して存在して要請された型に変換可能ならば。