/* 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 HistogramAggregation interface.
 */
export function instanceOfHistogramAggregation(value) {
    return true;
}
export function HistogramAggregationFromJSON(json) {
    return HistogramAggregationFromJSONTyped(json, false);
}
export function HistogramAggregationFromJSONTyped(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'],
        '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'],
        'order': json['order'] == null ? undefined : json['order'],
        'missing': json['missing'] == null ? undefined : json['missing'],
        'format': json['format'] == null ? undefined : json['format'],
    };
}
export function HistogramAggregationToJSON(json) {
    return HistogramAggregationToJSONTyped(json, false);
}
export function HistogramAggregationToJSONTyped(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'],
        'interval': value['interval'],
        'min_doc_count': value['min_doc_count'],
        'offset': value['offset'],
        'order': value['order'],
        'missing': value['missing'],
        'format': value['format'],
    };
}
//# sourceMappingURL=HistogramAggregation.js.map