wallee
Version:
TypeScript/JavaScript client for wallee
48 lines (47 loc) • 2.43 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfApplicationUserCreateWithMacKey = instanceOfApplicationUserCreateWithMacKey;
exports.ApplicationUserCreateWithMacKeyFromJSON = ApplicationUserCreateWithMacKeyFromJSON;
exports.ApplicationUserCreateWithMacKeyFromJSONTyped = ApplicationUserCreateWithMacKeyFromJSONTyped;
exports.ApplicationUserCreateWithMacKeyToJSON = ApplicationUserCreateWithMacKeyToJSON;
exports.ApplicationUserCreateWithMacKeyToJSONTyped = ApplicationUserCreateWithMacKeyToJSONTyped;
const CreationEntityState_1 = require("./CreationEntityState");
const UserType_1 = require("./UserType");
/**
* Check if a given object implements the ApplicationUserCreateWithMacKey interface.
*/
function instanceOfApplicationUserCreateWithMacKey(value) {
return true;
}
function ApplicationUserCreateWithMacKeyFromJSON(json) {
return ApplicationUserCreateWithMacKeyFromJSONTyped(json, false);
}
function ApplicationUserCreateWithMacKeyFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'scope': json['scope'] == null ? undefined : json['scope'],
'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])),
'id': json['id'] == null ? undefined : json['id'],
'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']),
'userType': json['userType'] == null ? undefined : (0, UserType_1.UserTypeFromJSON)(json['userType']),
'version': json['version'] == null ? undefined : json['version'],
'requestLimit': json['requestLimit'] == null ? undefined : json['requestLimit'],
'name': json['name'] == null ? undefined : json['name'],
'primaryAccount': json['primaryAccount'] == null ? undefined : json['primaryAccount'],
'macKey': json['macKey'] == null ? undefined : json['macKey'],
};
}
function ApplicationUserCreateWithMacKeyToJSON(json) {
return ApplicationUserCreateWithMacKeyToJSONTyped(json, false);
}
function ApplicationUserCreateWithMacKeyToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']),
'userType': (0, UserType_1.UserTypeToJSON)(value['userType']),
};
}