UNPKG

wallee

Version:
38 lines (37 loc) 1.66 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfProductVersionSearchResponse = instanceOfProductVersionSearchResponse; exports.ProductVersionSearchResponseFromJSON = ProductVersionSearchResponseFromJSON; exports.ProductVersionSearchResponseFromJSONTyped = ProductVersionSearchResponseFromJSONTyped; exports.ProductVersionSearchResponseToJSON = ProductVersionSearchResponseToJSON; exports.ProductVersionSearchResponseToJSONTyped = ProductVersionSearchResponseToJSONTyped; const SubscriptionProductVersion_1 = require("./SubscriptionProductVersion"); /** * Check if a given object implements the ProductVersionSearchResponse interface. */ function instanceOfProductVersionSearchResponse(value) { return true; } function ProductVersionSearchResponseFromJSON(json) { return ProductVersionSearchResponseFromJSONTyped(json, false); } function ProductVersionSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductVersion_1.SubscriptionProductVersionFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ProductVersionSearchResponseToJSON(json) { return ProductVersionSearchResponseToJSONTyped(json, false); } function ProductVersionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }