/* 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 { ExtendedBoundsFromJSON, ExtendedBoundsToJSON, } from './ExtendedBounds';
/**
 * Check if a given object implements the DateHistogramAggregation interface.
 */
export function instanceOfDateHistogramAggregation(value) {
    return true;
}
export function DateHistogramAggregationFromJSON(json) {
    return DateHistogramAggregationFromJSONTyped(json, false);
}
export function DateHistogramAggregationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'keyed': json['keyed'] == null ? undefined : json['keyed'],
        'extended_bounds': json['extended_bounds'] == null ? undefined : ExtendedBoundsFromJSON(json['extended_bounds']),
        'hard_bounds': json['hard_bounds'] == null ? undefined : ExtendedBoundsFromJSON(json['hard_bounds']),
        'field': json['field'] == null ? undefined : json['field'],
        'calendar_interval': json['calendar_interval'] == null ? undefined : json['calendar_interval'],
        'fixed_interval': json['fixed_interval'] == null ? undefined : json['fixed_interval'],
        'interval': json['interval'] == null ? undefined : json['interval'],
        'min_doc_count': json['min_doc_count'] == null ? undefined : json['min_doc_count'],
        'offset': json['offset'] == null ? undefined : json['offset'],
        'time_zone': json['time_zone'] == null ? undefined : json['time_zone'],
        'order': json['order'] == null ? undefined : json['order'],
        'missing': json['missing'] == null ? undefined : json['missing'],
        'format': json['format'] == null ? undefined : json['format'],
    };
}
export function DateHistogramAggregationToJSON(json) {
    return DateHistogramAggregationToJSONTyped(json, false);
}
export function DateHistogramAggregationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'keyed': value['keyed'],
        'extended_bounds': ExtendedBoundsToJSON(value['extended_bounds']),
        'hard_bounds': ExtendedBoundsToJSON(value['hard_bounds']),
        'field': value['field'],
        'calendar_interval': value['calendar_interval'],
        'fixed_interval': value['fixed_interval'],
        'interval': value['interval'],
        'min_doc_count': value['min_doc_count'],
        'offset': value['offset'],
        'time_zone': value['time_zone'],
        'order': value['order'],
        'missing': value['missing'],
        'format': value['format'],
    };
}
//# sourceMappingURL=DateHistogramAggregation.js.map