UNPKG

wallee

Version:
39 lines (38 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentMethodBrand = instanceOfPaymentMethodBrand; exports.PaymentMethodBrandFromJSON = PaymentMethodBrandFromJSON; exports.PaymentMethodBrandFromJSONTyped = PaymentMethodBrandFromJSONTyped; exports.PaymentMethodBrandToJSON = PaymentMethodBrandToJSON; exports.PaymentMethodBrandToJSONTyped = PaymentMethodBrandToJSONTyped; /** * Check if a given object implements the PaymentMethodBrand interface. */ function instanceOfPaymentMethodBrand(value) { return true; } function PaymentMethodBrandFromJSON(json) { return PaymentMethodBrandFromJSONTyped(json, false); } function PaymentMethodBrandFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'grayImagePath': json['grayImagePath'] == null ? undefined : json['grayImagePath'], 'imagePath': json['imagePath'] == null ? undefined : json['imagePath'], 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'paymentMethod': json['paymentMethod'] == null ? undefined : json['paymentMethod'], 'id': json['id'] == null ? undefined : json['id'], }; } function PaymentMethodBrandToJSON(json) { return PaymentMethodBrandToJSONTyped(json, false); } function PaymentMethodBrandToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }