UNPKG

wallee

Version:
38 lines (37 loc) 1.66 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfPaymentProcessorSearchResponse = instanceOfPaymentProcessorSearchResponse; exports.PaymentProcessorSearchResponseFromJSON = PaymentProcessorSearchResponseFromJSON; exports.PaymentProcessorSearchResponseFromJSONTyped = PaymentProcessorSearchResponseFromJSONTyped; exports.PaymentProcessorSearchResponseToJSON = PaymentProcessorSearchResponseToJSON; exports.PaymentProcessorSearchResponseToJSONTyped = PaymentProcessorSearchResponseToJSONTyped; const PaymentProcessor_1 = require("./PaymentProcessor"); /** * Check if a given object implements the PaymentProcessorSearchResponse interface. */ function instanceOfPaymentProcessorSearchResponse(value) { return true; } function PaymentProcessorSearchResponseFromJSON(json) { return PaymentProcessorSearchResponseFromJSONTyped(json, false); } function PaymentProcessorSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(PaymentProcessor_1.PaymentProcessorFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function PaymentProcessorSearchResponseToJSON(json) { return PaymentProcessorSearchResponseToJSONTyped(json, false); } function PaymentProcessorSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }