UNPKG

wallee

Version:
37 lines (36 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfMetricListResponse = instanceOfMetricListResponse; exports.MetricListResponseFromJSON = MetricListResponseFromJSON; exports.MetricListResponseFromJSONTyped = MetricListResponseFromJSONTyped; exports.MetricListResponseToJSON = MetricListResponseToJSON; exports.MetricListResponseToJSONTyped = MetricListResponseToJSONTyped; const SubscriptionMetric_1 = require("./SubscriptionMetric"); /** * Check if a given object implements the MetricListResponse interface. */ function instanceOfMetricListResponse(value) { return true; } function MetricListResponseFromJSON(json) { return MetricListResponseFromJSONTyped(json, false); } function MetricListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionMetric_1.SubscriptionMetricFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function MetricListResponseToJSON(json) { return MetricListResponseToJSONTyped(json, false); } function MetricListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }