wallee
Version:
TypeScript/JavaScript client for wallee
32 lines (31 loc) • 1.15 kB
JavaScript
import { ApplicationKeyStateFromJSON, ApplicationKeyStateToJSON, } from './ApplicationKeyState';
/**
* Check if a given object implements the RestApplicationUserMacKey interface.
*/
export function instanceOfRestApplicationUserMacKey(value) {
return true;
}
export function RestApplicationUserMacKeyFromJSON(json) {
return RestApplicationUserMacKeyFromJSONTyped(json, false);
}
export function RestApplicationUserMacKeyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'creationTime': json['creationTime'] == null ? undefined : (new Date(json['creationTime'])),
'id': json['id'] == null ? undefined : json['id'],
'state': json['state'] == null ? undefined : ApplicationKeyStateFromJSON(json['state']),
};
}
export function RestApplicationUserMacKeyToJSON(json) {
return RestApplicationUserMacKeyToJSONTyped(json, false);
}
export function RestApplicationUserMacKeyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'state': ApplicationKeyStateToJSON(value['state']),
};
}