UNPKG

wallee

Version:
30 lines (29 loc) 982 B
import { SubscriptionMetricFromJSON, } from './SubscriptionMetric'; /** * Check if a given object implements the MetricListResponse interface. */ export function instanceOfMetricListResponse(value) { return true; } export function MetricListResponseFromJSON(json) { return MetricListResponseFromJSONTyped(json, false); } export function MetricListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionMetricFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function MetricListResponseToJSON(json) { return MetricListResponseToJSONTyped(json, false); } export function MetricListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }