UNPKG

wallee

Version:
37 lines (36 loc) 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfMetricUsageListResponse = instanceOfMetricUsageListResponse; exports.MetricUsageListResponseFromJSON = MetricUsageListResponseFromJSON; exports.MetricUsageListResponseFromJSONTyped = MetricUsageListResponseFromJSONTyped; exports.MetricUsageListResponseToJSON = MetricUsageListResponseToJSON; exports.MetricUsageListResponseToJSONTyped = MetricUsageListResponseToJSONTyped; const MetricUsage_1 = require("./MetricUsage"); /** * Check if a given object implements the MetricUsageListResponse interface. */ function instanceOfMetricUsageListResponse(value) { return true; } function MetricUsageListResponseFromJSON(json) { return MetricUsageListResponseFromJSONTyped(json, false); } function MetricUsageListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(MetricUsage_1.MetricUsageFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function MetricUsageListResponseToJSON(json) { return MetricUsageListResponseToJSONTyped(json, false); } function MetricUsageListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }