UNPKG

wallee

Version:
38 lines (37 loc) 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfProductSearchResponse = instanceOfProductSearchResponse; exports.ProductSearchResponseFromJSON = ProductSearchResponseFromJSON; exports.ProductSearchResponseFromJSONTyped = ProductSearchResponseFromJSONTyped; exports.ProductSearchResponseToJSON = ProductSearchResponseToJSON; exports.ProductSearchResponseToJSONTyped = ProductSearchResponseToJSONTyped; const SubscriptionProduct_1 = require("./SubscriptionProduct"); /** * Check if a given object implements the ProductSearchResponse interface. */ function instanceOfProductSearchResponse(value) { return true; } function ProductSearchResponseFromJSON(json) { return ProductSearchResponseFromJSONTyped(json, false); } function ProductSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProduct_1.SubscriptionProductFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ProductSearchResponseToJSON(json) { return ProductSearchResponseToJSONTyped(json, false); } function ProductSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }