wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.39 kB
JavaScript
import { CreationEntityStateFromJSON, CreationEntityStateToJSON, } from './CreationEntityState';
/**
* Check if a given object implements the ApplicationUserCreate interface.
*/
export function instanceOfApplicationUserCreate(value) {
if (!('primaryAccount' in value) || value['primaryAccount'] === undefined)
return false;
return true;
}
export function ApplicationUserCreateFromJSON(json) {
return ApplicationUserCreateFromJSONTyped(json, false);
}
export 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 : CreationEntityStateFromJSON(json['state']),
'primaryAccount': json['primaryAccount'],
};
}
export function ApplicationUserCreateToJSON(json) {
return ApplicationUserCreateToJSONTyped(json, false);
}
export function ApplicationUserCreateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'requestLimit': value['requestLimit'],
'name': value['name'],
'state': CreationEntityStateToJSON(value['state']),
'primaryAccount': value['primaryAccount'],
};
}