wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.81 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionLedgerEntrySearchResponse = instanceOfSubscriptionLedgerEntrySearchResponse;
exports.SubscriptionLedgerEntrySearchResponseFromJSON = SubscriptionLedgerEntrySearchResponseFromJSON;
exports.SubscriptionLedgerEntrySearchResponseFromJSONTyped = SubscriptionLedgerEntrySearchResponseFromJSONTyped;
exports.SubscriptionLedgerEntrySearchResponseToJSON = SubscriptionLedgerEntrySearchResponseToJSON;
exports.SubscriptionLedgerEntrySearchResponseToJSONTyped = SubscriptionLedgerEntrySearchResponseToJSONTyped;
const SubscriptionLedgerEntry_1 = require("./SubscriptionLedgerEntry");
/**
* Check if a given object implements the SubscriptionLedgerEntrySearchResponse interface.
*/
function instanceOfSubscriptionLedgerEntrySearchResponse(value) {
return true;
}
function SubscriptionLedgerEntrySearchResponseFromJSON(json) {
return SubscriptionLedgerEntrySearchResponseFromJSONTyped(json, false);
}
function SubscriptionLedgerEntrySearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionLedgerEntry_1.SubscriptionLedgerEntryFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function SubscriptionLedgerEntrySearchResponseToJSON(json) {
return SubscriptionLedgerEntrySearchResponseToJSONTyped(json, false);
}
function SubscriptionLedgerEntrySearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}