UNPKG

wallee

Version:
37 lines (36 loc) 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentMethodBrandListResponse = instanceOfPaymentMethodBrandListResponse; exports.PaymentMethodBrandListResponseFromJSON = PaymentMethodBrandListResponseFromJSON; exports.PaymentMethodBrandListResponseFromJSONTyped = PaymentMethodBrandListResponseFromJSONTyped; exports.PaymentMethodBrandListResponseToJSON = PaymentMethodBrandListResponseToJSON; exports.PaymentMethodBrandListResponseToJSONTyped = PaymentMethodBrandListResponseToJSONTyped; const PaymentMethodBrand_1 = require("./PaymentMethodBrand"); /** * Check if a given object implements the PaymentMethodBrandListResponse interface. */ function instanceOfPaymentMethodBrandListResponse(value) { return true; } function PaymentMethodBrandListResponseFromJSON(json) { return PaymentMethodBrandListResponseFromJSONTyped(json, false); } function PaymentMethodBrandListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethodBrand_1.PaymentMethodBrandFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function PaymentMethodBrandListResponseToJSON(json) { return PaymentMethodBrandListResponseToJSONTyped(json, false); } function PaymentMethodBrandListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }