UNPKG

wallee

Version:
38 lines (37 loc) 1.49 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfMetricSearchResponse = instanceOfMetricSearchResponse; exports.MetricSearchResponseFromJSON = MetricSearchResponseFromJSON; exports.MetricSearchResponseFromJSONTyped = MetricSearchResponseFromJSONTyped; exports.MetricSearchResponseToJSON = MetricSearchResponseToJSON; exports.MetricSearchResponseToJSONTyped = MetricSearchResponseToJSONTyped; const SubscriptionMetric_1 = require("./SubscriptionMetric"); /** * Check if a given object implements the MetricSearchResponse interface. */ function instanceOfMetricSearchResponse(value) { return true; } function MetricSearchResponseFromJSON(json) { return MetricSearchResponseFromJSONTyped(json, false); } function MetricSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionMetric_1.SubscriptionMetricFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function MetricSearchResponseToJSON(json) { return MetricSearchResponseToJSONTyped(json, false); } function MetricSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }