wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.19 kB
JavaScript
import { SubscriptionMetricUsageReportFromJSON, } from './SubscriptionMetricUsageReport';
/**
* Check if a given object implements the MetricUsageReportSearchResponse interface.
*/
export function instanceOfMetricUsageReportSearchResponse(value) {
return true;
}
export function MetricUsageReportSearchResponseFromJSON(json) {
return MetricUsageReportSearchResponseFromJSONTyped(json, false);
}
export function MetricUsageReportSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionMetricUsageReportFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function MetricUsageReportSearchResponseToJSON(json) {
return MetricUsageReportSearchResponseToJSONTyped(json, false);
}
export function MetricUsageReportSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}