UNPKG

wallee

Version:
36 lines (35 loc) 1.28 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentTerminalType = instanceOfPaymentTerminalType; exports.PaymentTerminalTypeFromJSON = PaymentTerminalTypeFromJSON; exports.PaymentTerminalTypeFromJSONTyped = PaymentTerminalTypeFromJSONTyped; exports.PaymentTerminalTypeToJSON = PaymentTerminalTypeToJSON; exports.PaymentTerminalTypeToJSONTyped = PaymentTerminalTypeToJSONTyped; /** * Check if a given object implements the PaymentTerminalType interface. */ function instanceOfPaymentTerminalType(value) { return true; } function PaymentTerminalTypeFromJSON(json) { return PaymentTerminalTypeFromJSONTyped(json, false); } function PaymentTerminalTypeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], }; } function PaymentTerminalTypeToJSON(json) { return PaymentTerminalTypeToJSONTyped(json, false); } function PaymentTerminalTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }