UNPKG

wallee

Version:
37 lines (36 loc) 1.6 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfProductComponentListResponse = instanceOfProductComponentListResponse; exports.ProductComponentListResponseFromJSON = ProductComponentListResponseFromJSON; exports.ProductComponentListResponseFromJSONTyped = ProductComponentListResponseFromJSONTyped; exports.ProductComponentListResponseToJSON = ProductComponentListResponseToJSON; exports.ProductComponentListResponseToJSONTyped = ProductComponentListResponseToJSONTyped; const SubscriptionProductComponent_1 = require("./SubscriptionProductComponent"); /** * Check if a given object implements the ProductComponentListResponse interface. */ function instanceOfProductComponentListResponse(value) { return true; } function ProductComponentListResponseFromJSON(json) { return ProductComponentListResponseFromJSONTyped(json, false); } function ProductComponentListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductComponent_1.SubscriptionProductComponentFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ProductComponentListResponseToJSON(json) { return ProductComponentListResponseToJSONTyped(json, false); } function ProductComponentListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }