UNPKG

wallee

Version:
36 lines (35 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentAdjustmentType = instanceOfPaymentAdjustmentType; exports.PaymentAdjustmentTypeFromJSON = PaymentAdjustmentTypeFromJSON; exports.PaymentAdjustmentTypeFromJSONTyped = PaymentAdjustmentTypeFromJSONTyped; exports.PaymentAdjustmentTypeToJSON = PaymentAdjustmentTypeToJSON; exports.PaymentAdjustmentTypeToJSONTyped = PaymentAdjustmentTypeToJSONTyped; /** * Check if a given object implements the PaymentAdjustmentType interface. */ function instanceOfPaymentAdjustmentType(value) { return true; } function PaymentAdjustmentTypeFromJSON(json) { return PaymentAdjustmentTypeFromJSONTyped(json, false); } function PaymentAdjustmentTypeFromJSONTyped(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 PaymentAdjustmentTypeToJSON(json) { return PaymentAdjustmentTypeToJSONTyped(json, false); } function PaymentAdjustmentTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }