wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.07 kB
JavaScript
import { SubscriptionMetricFromJSON, } from './SubscriptionMetric';
/**
* Check if a given object implements the MetricSearchResponse interface.
*/
export function instanceOfMetricSearchResponse(value) {
return true;
}
export function MetricSearchResponseFromJSON(json) {
return MetricSearchResponseFromJSONTyped(json, false);
}
export function MetricSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(SubscriptionMetricFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function MetricSearchResponseToJSON(json) {
return MetricSearchResponseToJSONTyped(json, false);
}
export function MetricSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}