IamUser.decode()
DESCRIPTION
Create an IamUser instance based on raw CBOR data.
DECLARATION
public static func decode(cbor: Data) throws -> IamUser
PARAMETERS
cbor:
- Raw CBOR data (as received through a CoAP call to a Nabto Embedded SDK device).
ERRORS
Throws the following errors:
INVALID_RESPONSE:
- If the specified data could not be decoded into an IamUser instance.
RETURN VALUES
an IamUser instance representing the input raw CBOR data
EXAMPLES
None.