wallee
Version:
TypeScript/JavaScript client for wallee
35 lines (34 loc) • 1.04 kB
JavaScript
/**
* Check if a given object implements the AccountUpdate interface.
*/
export function instanceOfAccountUpdate(value) {
if (!('version' in value) || value['version'] === undefined)
return false;
return true;
}
export function AccountUpdateFromJSON(json) {
return AccountUpdateFromJSONTyped(json, false);
}
export function AccountUpdateFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'subaccountLimit': json['subaccountLimit'] == null ? undefined : json['subaccountLimit'],
'version': json['version'],
};
}
export function AccountUpdateToJSON(json) {
return AccountUpdateToJSONTyped(json, false);
}
export function AccountUpdateToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'name': value['name'],
'subaccountLimit': value['subaccountLimit'],
'version': value['version'],
};
}