UNPKG

wallee

Version:
52 lines (51 loc) 3.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentTerminalLocationVersion = instanceOfPaymentTerminalLocationVersion; exports.PaymentTerminalLocationVersionFromJSON = PaymentTerminalLocationVersionFromJSON; exports.PaymentTerminalLocationVersionFromJSONTyped = PaymentTerminalLocationVersionFromJSONTyped; exports.PaymentTerminalLocationVersionToJSON = PaymentTerminalLocationVersionToJSON; exports.PaymentTerminalLocationVersionToJSONTyped = PaymentTerminalLocationVersionToJSONTyped; const PaymentTerminalAddress_1 = require("./PaymentTerminalAddress"); const PaymentTerminalLocationVersionState_1 = require("./PaymentTerminalLocationVersionState"); const PaymentTerminalLocation_1 = require("./PaymentTerminalLocation"); /** * Check if a given object implements the PaymentTerminalLocationVersion interface. */ function instanceOfPaymentTerminalLocationVersion(value) { return true; } function PaymentTerminalLocationVersionFromJSON(json) { return PaymentTerminalLocationVersionFromJSONTyped(json, false); } function PaymentTerminalLocationVersionFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'], 'address': json['address'] == null ? undefined : (0, PaymentTerminalAddress_1.PaymentTerminalAddressFromJSON)(json['address']), 'createdBy': json['createdBy'] == null ? undefined : json['createdBy'], 'plannedPurgeDate': json['plannedPurgeDate'] == null ? undefined : (new Date(json['plannedPurgeDate'])), 'contactAddress': json['contactAddress'] == null ? undefined : (0, PaymentTerminalAddress_1.PaymentTerminalAddressFromJSON)(json['contactAddress']), 'location': json['location'] == null ? undefined : (0, PaymentTerminalLocation_1.PaymentTerminalLocationFromJSON)(json['location']), 'versionAppliedImmediately': json['versionAppliedImmediately'] == null ? undefined : json['versionAppliedImmediately'], 'id': json['id'] == null ? undefined : json['id'], 'state': json['state'] == null ? undefined : (0, PaymentTerminalLocationVersionState_1.PaymentTerminalLocationVersionStateFromJSON)(json['state']), 'createdOn': json['createdOn'] == null ? undefined : (new Date(json['createdOn'])), 'version': json['version'] == null ? undefined : json['version'], }; } function PaymentTerminalLocationVersionToJSON(json) { return PaymentTerminalLocationVersionToJSONTyped(json, false); } function PaymentTerminalLocationVersionToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'address': (0, PaymentTerminalAddress_1.PaymentTerminalAddressToJSON)(value['address']), 'contactAddress': (0, PaymentTerminalAddress_1.PaymentTerminalAddressToJSON)(value['contactAddress']), 'location': (0, PaymentTerminalLocation_1.PaymentTerminalLocationToJSON)(value['location']), 'state': (0, PaymentTerminalLocationVersionState_1.PaymentTerminalLocationVersionStateToJSON)(value['state']), }; }