wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.49 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentMethodListResponse = instanceOfPaymentMethodListResponse;
exports.PaymentMethodListResponseFromJSON = PaymentMethodListResponseFromJSON;
exports.PaymentMethodListResponseFromJSONTyped = PaymentMethodListResponseFromJSONTyped;
exports.PaymentMethodListResponseToJSON = PaymentMethodListResponseToJSON;
exports.PaymentMethodListResponseToJSONTyped = PaymentMethodListResponseToJSONTyped;
const PaymentMethod_1 = require("./PaymentMethod");
/**
* Check if a given object implements the PaymentMethodListResponse interface.
*/
function instanceOfPaymentMethodListResponse(value) {
return true;
}
function PaymentMethodListResponseFromJSON(json) {
return PaymentMethodListResponseFromJSONTyped(json, false);
}
function PaymentMethodListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethod_1.PaymentMethodFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function PaymentMethodListResponseToJSON(json) {
return PaymentMethodListResponseToJSONTyped(json, false);
}
function PaymentMethodListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}