UNPKG

wallee

Version:
39 lines (38 loc) 1.57 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentInformationHash = instanceOfPaymentInformationHash; exports.PaymentInformationHashFromJSON = PaymentInformationHashFromJSON; exports.PaymentInformationHashFromJSONTyped = PaymentInformationHashFromJSONTyped; exports.PaymentInformationHashToJSON = PaymentInformationHashToJSON; exports.PaymentInformationHashToJSONTyped = PaymentInformationHashToJSONTyped; const PaymentInformationHashType_1 = require("./PaymentInformationHashType"); /** * Check if a given object implements the PaymentInformationHash interface. */ function instanceOfPaymentInformationHash(value) { return true; } function PaymentInformationHashFromJSON(json) { return PaymentInformationHashFromJSONTyped(json, false); } function PaymentInformationHashFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'id': json['id'] == null ? undefined : json['id'], 'type': json['type'] == null ? undefined : (0, PaymentInformationHashType_1.PaymentInformationHashTypeFromJSON)(json['type']), 'value': json['value'] == null ? undefined : json['value'], }; } function PaymentInformationHashToJSON(json) { return PaymentInformationHashToJSONTyped(json, false); } function PaymentInformationHashToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'type': (0, PaymentInformationHashType_1.PaymentInformationHashTypeToJSON)(value['type']), }; }