wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.82 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfProductComponentGroupSearchResponse = instanceOfProductComponentGroupSearchResponse;
exports.ProductComponentGroupSearchResponseFromJSON = ProductComponentGroupSearchResponseFromJSON;
exports.ProductComponentGroupSearchResponseFromJSONTyped = ProductComponentGroupSearchResponseFromJSONTyped;
exports.ProductComponentGroupSearchResponseToJSON = ProductComponentGroupSearchResponseToJSON;
exports.ProductComponentGroupSearchResponseToJSONTyped = ProductComponentGroupSearchResponseToJSONTyped;
const SubscriptionProductComponentGroup_1 = require("./SubscriptionProductComponentGroup");
/**
* Check if a given object implements the ProductComponentGroupSearchResponse interface.
*/
function instanceOfProductComponentGroupSearchResponse(value) {
return true;
}
function ProductComponentGroupSearchResponseFromJSON(json) {
return ProductComponentGroupSearchResponseFromJSONTyped(json, false);
}
function ProductComponentGroupSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductComponentGroup_1.SubscriptionProductComponentGroupFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function ProductComponentGroupSearchResponseToJSON(json) {
return ProductComponentGroupSearchResponseToJSONTyped(json, false);
}
function ProductComponentGroupSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}