/* 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 { DateHistogramAggregationFromJSONTyped, DateHistogramAggregationToJSON, } from './DateHistogramAggregation';
import { HistogramAggregationFromJSONTyped, HistogramAggregationToJSON, } from './HistogramAggregation';
export function HistogramBoundsOptionsFromJSON(json) {
    return HistogramBoundsOptionsFromJSONTyped(json, false);
}
export function HistogramBoundsOptionsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.search.dsl.DateHistogramAggregation':
            return Object.assign({}, DateHistogramAggregationFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.DateHistogramAggregation' });
        case 'org.sagebionetworks.repo.model.search.dsl.HistogramAggregation':
            return Object.assign({}, HistogramAggregationFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.HistogramAggregation' });
        default:
            return json;
    }
}
export function HistogramBoundsOptionsToJSON(json) {
    return HistogramBoundsOptionsToJSONTyped(json, false);
}
export function HistogramBoundsOptionsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.search.dsl.DateHistogramAggregation':
            return Object.assign({}, DateHistogramAggregationToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.DateHistogramAggregation' });
        case 'org.sagebionetworks.repo.model.search.dsl.HistogramAggregation':
            return Object.assign({}, HistogramAggregationToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.search.dsl.HistogramAggregation' });
        default:
            return value;
    }
}
//# sourceMappingURL=HistogramBoundsOptions.js.map