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

encodeIfPresent(_:forKey:)

Encodes the given value for the given key if it is not nil. 与えられたキーに対して与えられた値をエンコードします、それがnilでないならば。

Declaration 宣言

mutating func encodeIfPresent(_ value: Int32?, forKey key: Self.Key) throws

Parameters パラメータ

value

The value to encode. エンコードする値。

key

The key to associate the value with. 値と関連付けられるキー。