wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionChargeListResponse = instanceOfSubscriptionChargeListResponse;
exports.SubscriptionChargeListResponseFromJSON = SubscriptionChargeListResponseFromJSON;
exports.SubscriptionChargeListResponseFromJSONTyped = SubscriptionChargeListResponseFromJSONTyped;
exports.SubscriptionChargeListResponseToJSON = SubscriptionChargeListResponseToJSON;
exports.SubscriptionChargeListResponseToJSONTyped = SubscriptionChargeListResponseToJSONTyped;
const SubscriptionCharge_1 = require("./SubscriptionCharge");
/**
* Check if a given object implements the SubscriptionChargeListResponse interface.
*/
function instanceOfSubscriptionChargeListResponse(value) {
return true;
}
function SubscriptionChargeListResponseFromJSON(json) {
return SubscriptionChargeListResponseFromJSONTyped(json, false);
}
function SubscriptionChargeListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionCharge_1.SubscriptionChargeFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function SubscriptionChargeListResponseToJSON(json) {
return SubscriptionChargeListResponseToJSONTyped(json, false);
}
function SubscriptionChargeListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}