wallee
Version:
TypeScript/JavaScript client for wallee
37 lines (36 loc) • 1.56 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfProductVersionListResponse = instanceOfProductVersionListResponse;
exports.ProductVersionListResponseFromJSON = ProductVersionListResponseFromJSON;
exports.ProductVersionListResponseFromJSONTyped = ProductVersionListResponseFromJSONTyped;
exports.ProductVersionListResponseToJSON = ProductVersionListResponseToJSON;
exports.ProductVersionListResponseToJSONTyped = ProductVersionListResponseToJSONTyped;
const SubscriptionProductVersion_1 = require("./SubscriptionProductVersion");
/**
* Check if a given object implements the ProductVersionListResponse interface.
*/
function instanceOfProductVersionListResponse(value) {
return true;
}
function ProductVersionListResponseFromJSON(json) {
return ProductVersionListResponseFromJSONTyped(json, false);
}
function ProductVersionListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductVersion_1.SubscriptionProductVersionFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function ProductVersionListResponseToJSON(json) {
return ProductVersionListResponseToJSONTyped(json, false);
}
function ProductVersionListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}