/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import { AggregationRangeFromJSON, AggregationRangeToJSON, } from './AggregationRange';
/**
 * Check if a given object implements the DateRangeAggregation interface.
 */
export function instanceOfDateRangeAggregation(value) {
    return true;
}
export function DateRangeAggregationFromJSON(json) {
    return DateRangeAggregationFromJSONTyped(json, false);
}
export function DateRangeAggregationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'keyed': json['keyed'] == null ? undefined : json['keyed'],
        'field': json['field'] == null ? undefined : json['field'],
        'ranges': json['ranges'] == null ? undefined : (json['ranges'].map(AggregationRangeFromJSON)),
        'time_zone': json['time_zone'] == null ? undefined : json['time_zone'],
        'missing': json['missing'] == null ? undefined : json['missing'],
        'format': json['format'] == null ? undefined : json['format'],
    };
}
export function DateRangeAggregationToJSON(json) {
    return DateRangeAggregationToJSONTyped(json, false);
}
export function DateRangeAggregationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'keyed': value['keyed'],
        'field': value['field'],
        'ranges': value['ranges'] == null ? undefined : (value['ranges'].map(AggregationRangeToJSON)),
        'time_zone': value['time_zone'],
        'missing': value['missing'],
        'format': value['format'],
    };
}
//# sourceMappingURL=DateRangeAggregation.js.map