wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.57 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfSubscriptionSearchResponse = instanceOfSubscriptionSearchResponse;
exports.SubscriptionSearchResponseFromJSON = SubscriptionSearchResponseFromJSON;
exports.SubscriptionSearchResponseFromJSONTyped = SubscriptionSearchResponseFromJSONTyped;
exports.SubscriptionSearchResponseToJSON = SubscriptionSearchResponseToJSON;
exports.SubscriptionSearchResponseToJSONTyped = SubscriptionSearchResponseToJSONTyped;
const Subscription_1 = require("./Subscription");
/**
* Check if a given object implements the SubscriptionSearchResponse interface.
*/
function instanceOfSubscriptionSearchResponse(value) {
return true;
}
function SubscriptionSearchResponseFromJSON(json) {
return SubscriptionSearchResponseFromJSONTyped(json, false);
}
function SubscriptionSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(Subscription_1.SubscriptionFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function SubscriptionSearchResponseToJSON(json) {
return SubscriptionSearchResponseToJSONTyped(json, false);
}
function SubscriptionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}