wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.1 kB
JavaScript
import { SubscriptionMetricUsageReportFromJSON, } from './SubscriptionMetricUsageReport';
/**
* Check if a given object implements the MetricUsageReportListResponse interface.
*/
export function instanceOfMetricUsageReportListResponse(value) {
return true;
}
export function MetricUsageReportListResponseFromJSON(json) {
return MetricUsageReportListResponseFromJSONTyped(json, false);
}
export function MetricUsageReportListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionMetricUsageReportFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function MetricUsageReportListResponseToJSON(json) {
return MetricUsageReportListResponseToJSONTyped(json, false);
}
export function MetricUsageReportListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}