wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.59 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfPaymentMethodSearchResponse = instanceOfPaymentMethodSearchResponse;
exports.PaymentMethodSearchResponseFromJSON = PaymentMethodSearchResponseFromJSON;
exports.PaymentMethodSearchResponseFromJSONTyped = PaymentMethodSearchResponseFromJSONTyped;
exports.PaymentMethodSearchResponseToJSON = PaymentMethodSearchResponseToJSON;
exports.PaymentMethodSearchResponseToJSONTyped = PaymentMethodSearchResponseToJSONTyped;
const PaymentMethod_1 = require("./PaymentMethod");
/**
* Check if a given object implements the PaymentMethodSearchResponse interface.
*/
function instanceOfPaymentMethodSearchResponse(value) {
return true;
}
function PaymentMethodSearchResponseFromJSON(json) {
return PaymentMethodSearchResponseFromJSONTyped(json, false);
}
function PaymentMethodSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(PaymentMethod_1.PaymentMethodFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function PaymentMethodSearchResponseToJSON(json) {
return PaymentMethodSearchResponseToJSONTyped(json, false);
}
function PaymentMethodSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}