/* 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 { FacetColumnResultRangeFromJSONTyped, FacetColumnResultRangeToJSON, } from './FacetColumnResultRange';
import { FacetColumnResultValuesFromJSONTyped, FacetColumnResultValuesToJSON, } from './FacetColumnResultValues';
export function FacetColumnResultFromJSON(json) {
    return FacetColumnResultFromJSONTyped(json, false);
}
export function FacetColumnResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.FacetColumnResultRange':
            return Object.assign({}, FacetColumnResultRangeFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultRange' });
        case 'org.sagebionetworks.repo.model.table.FacetColumnResultValues':
            return Object.assign({}, FacetColumnResultValuesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultValues' });
        default:
            return json;
    }
}
export function FacetColumnResultToJSON(json) {
    return FacetColumnResultToJSONTyped(json, false);
}
export function FacetColumnResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.FacetColumnResultRange':
            return Object.assign({}, FacetColumnResultRangeToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultRange' });
        case 'org.sagebionetworks.repo.model.table.FacetColumnResultValues':
            return Object.assign({}, FacetColumnResultValuesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultValues' });
        default:
            return value;
    }
}
//# sourceMappingURL=FacetColumnResult.js.map