wallee
Version:
TypeScript/JavaScript client for wallee
45 lines (44 loc) • 1.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfApplicationUserCreate = instanceOfApplicationUserCreate;
exports.ApplicationUserCreateFromJSON = ApplicationUserCreateFromJSON;
exports.ApplicationUserCreateFromJSONTyped = ApplicationUserCreateFromJSONTyped;
exports.ApplicationUserCreateToJSON = ApplicationUserCreateToJSON;
exports.ApplicationUserCreateToJSONTyped = ApplicationUserCreateToJSONTyped;
const CreationEntityState_1 = require("./CreationEntityState");
/**
* Check if a given object implements the ApplicationUserCreate interface.
*/
function instanceOfApplicationUserCreate(value) {
if (!('primaryAccount' in value) || value['primaryAccount'] === undefined)
return false;
return true;
}
function ApplicationUserCreateFromJSON(json) {
return ApplicationUserCreateFromJSONTyped(json, false);
}
function ApplicationUserCreateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'requestLimit': json['requestLimit'] == null ? undefined : json['requestLimit'],
'name': json['name'] == null ? undefined : json['name'],
'state': json['state'] == null ? undefined : (0, CreationEntityState_1.CreationEntityStateFromJSON)(json['state']),
'primaryAccount': json['primaryAccount'],
};
}
function ApplicationUserCreateToJSON(json) {
return ApplicationUserCreateToJSONTyped(json, false);
}
function ApplicationUserCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'requestLimit': value['requestLimit'],
'name': value['name'],
'state': (0, CreationEntityState_1.CreationEntityStateToJSON)(value['state']),
'primaryAccount': value['primaryAccount'],
};
}