Enumeration Caseorlandos-nl.ikigajson 2.2.3IkigaJSON
default
Follow Decodable
’s default behavior:
case `default`
decodeNil(forKey:)
: Throw.keyNotFound
when the key is missing.decodeNil()
: Throw.valueNotFound
when unkeyed container is at end or single-value container is emptydecodeIfPresent(forKey:)
: Returnnil
when the key is missing.decodeIfPresent()
: Returnnil
when unkeyed container is at end or single-value container is empty.
Other cases
case decodeNilForKeyNotFound
When any
decodeNil()
is called on a container, and the key or value is not there, treat it as if the key were present withnil
value.case treatNilValuesAsMissing