UNPKG

wallee

Version:
38 lines (37 loc) 1.36 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfAbstractAccountUpdate = instanceOfAbstractAccountUpdate; exports.AbstractAccountUpdateFromJSON = AbstractAccountUpdateFromJSON; exports.AbstractAccountUpdateFromJSONTyped = AbstractAccountUpdateFromJSONTyped; exports.AbstractAccountUpdateToJSON = AbstractAccountUpdateToJSON; exports.AbstractAccountUpdateToJSONTyped = AbstractAccountUpdateToJSONTyped; /** * Check if a given object implements the AbstractAccountUpdate interface. */ function instanceOfAbstractAccountUpdate(value) { return true; } function AbstractAccountUpdateFromJSON(json) { return AbstractAccountUpdateFromJSONTyped(json, false); } function AbstractAccountUpdateFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'subaccountLimit': json['subaccountLimit'] == null ? undefined : json['subaccountLimit'], }; } function AbstractAccountUpdateToJSON(json) { return AbstractAccountUpdateToJSONTyped(json, false); } function AbstractAccountUpdateToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'name': value['name'], 'subaccountLimit': value['subaccountLimit'], }; }