UNPKG

wallee

Version:
38 lines (37 loc) 1.73 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfSubscriptionVersionSearchResponse = instanceOfSubscriptionVersionSearchResponse; exports.SubscriptionVersionSearchResponseFromJSON = SubscriptionVersionSearchResponseFromJSON; exports.SubscriptionVersionSearchResponseFromJSONTyped = SubscriptionVersionSearchResponseFromJSONTyped; exports.SubscriptionVersionSearchResponseToJSON = SubscriptionVersionSearchResponseToJSON; exports.SubscriptionVersionSearchResponseToJSONTyped = SubscriptionVersionSearchResponseToJSONTyped; const SubscriptionVersion_1 = require("./SubscriptionVersion"); /** * Check if a given object implements the SubscriptionVersionSearchResponse interface. */ function instanceOfSubscriptionVersionSearchResponse(value) { return true; } function SubscriptionVersionSearchResponseFromJSON(json) { return SubscriptionVersionSearchResponseFromJSONTyped(json, false); } function SubscriptionVersionSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionVersion_1.SubscriptionVersionFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function SubscriptionVersionSearchResponseToJSON(json) { return SubscriptionVersionSearchResponseToJSONTyped(json, false); } function SubscriptionVersionSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }