/* 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 { mapValues } from '../runtime';
import { DslQueryFromJSON, DslQueryToJSON, } from './DslQuery';
/**
 * Check if a given object implements the FiltersAggregation interface.
 */
export function instanceOfFiltersAggregation(value) {
    return true;
}
export function FiltersAggregationFromJSON(json) {
    return FiltersAggregationFromJSONTyped(json, false);
}
export function FiltersAggregationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'filters': json['filters'] == null ? undefined : (mapValues(json['filters'], DslQueryFromJSON)),
        'other_bucket': json['other_bucket'] == null ? undefined : json['other_bucket'],
        'other_bucket_key': json['other_bucket_key'] == null ? undefined : json['other_bucket_key'],
        'keyed': json['keyed'] == null ? undefined : json['keyed'],
    };
}
export function FiltersAggregationToJSON(json) {
    return FiltersAggregationToJSONTyped(json, false);
}
export function FiltersAggregationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'filters': value['filters'] == null ? undefined : (mapValues(value['filters'], DslQueryToJSON)),
        'other_bucket': value['other_bucket'],
        'other_bucket_key': value['other_bucket_key'],
        'keyed': value['keyed'],
    };
}
//# sourceMappingURL=FiltersAggregation.js.map