wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.71 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionLedgerEntryListResponse = instanceOfSubscriptionLedgerEntryListResponse;
exports.SubscriptionLedgerEntryListResponseFromJSON = SubscriptionLedgerEntryListResponseFromJSON;
exports.SubscriptionLedgerEntryListResponseFromJSONTyped = SubscriptionLedgerEntryListResponseFromJSONTyped;
exports.SubscriptionLedgerEntryListResponseToJSON = SubscriptionLedgerEntryListResponseToJSON;
exports.SubscriptionLedgerEntryListResponseToJSONTyped = SubscriptionLedgerEntryListResponseToJSONTyped;
const SubscriptionLedgerEntry_1 = require("./SubscriptionLedgerEntry");
/**
* Check if a given object implements the SubscriptionLedgerEntryListResponse interface.
*/
function instanceOfSubscriptionLedgerEntryListResponse(value) {
return true;
}
function SubscriptionLedgerEntryListResponseFromJSON(json) {
return SubscriptionLedgerEntryListResponseFromJSONTyped(json, false);
}
function SubscriptionLedgerEntryListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionLedgerEntry_1.SubscriptionLedgerEntryFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function SubscriptionLedgerEntryListResponseToJSON(json) {
return SubscriptionLedgerEntryListResponseToJSONTyped(json, false);
}
function SubscriptionLedgerEntryListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}