UNPKG

wallee

Version:
38 lines (37 loc) 1.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfProductRetirementSearchResponse = instanceOfProductRetirementSearchResponse; exports.ProductRetirementSearchResponseFromJSON = ProductRetirementSearchResponseFromJSON; exports.ProductRetirementSearchResponseFromJSONTyped = ProductRetirementSearchResponseFromJSONTyped; exports.ProductRetirementSearchResponseToJSON = ProductRetirementSearchResponseToJSON; exports.ProductRetirementSearchResponseToJSONTyped = ProductRetirementSearchResponseToJSONTyped; const SubscriptionProductRetirement_1 = require("./SubscriptionProductRetirement"); /** * Check if a given object implements the ProductRetirementSearchResponse interface. */ function instanceOfProductRetirementSearchResponse(value) { return true; } function ProductRetirementSearchResponseFromJSON(json) { return ProductRetirementSearchResponseFromJSONTyped(json, false); } function ProductRetirementSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionProductRetirement_1.SubscriptionProductRetirementFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function ProductRetirementSearchResponseToJSON(json) { return ProductRetirementSearchResponseToJSONTyped(json, false); } function ProductRetirementSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }