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).
THROWS ERRORS
INVALID_RESPONSE:- If the specified data could not be decoded into an IamUser instance.
RETURNS
an IamUser instance representing the input raw CBOR data