UNPKG

wallee

Version:
30 lines (29 loc) 1 kB
import { MetricUsageFromJSON, } from './MetricUsage'; /** * Check if a given object implements the MetricUsageListResponse interface. */ export function instanceOfMetricUsageListResponse(value) { return true; } export function MetricUsageListResponseFromJSON(json) { return MetricUsageListResponseFromJSONTyped(json, false); } export function MetricUsageListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(MetricUsageFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function MetricUsageListResponseToJSON(json) { return MetricUsageListResponseToJSONTyped(json, false); } export function MetricUsageListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }