Contents

decodeTopLevelObject(forKey:)

Decodes the previously-encoded object associated by a key.

Declaration

@nonobjc func decodeTopLevelObject(forKey key: String) throws -> Any?

Parameters

  • key:

    The key that identifies the object to decode.

Return Value

The decoded object, or nil if decoding fails.

See Also

Decoding Top-Level Objects