/* 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 { FacetColumnRangeRequestFromJSONTyped, FacetColumnRangeRequestToJSON, } from './FacetColumnRangeRequest';
import { FacetColumnValuesRequestFromJSONTyped, FacetColumnValuesRequestToJSON, } from './FacetColumnValuesRequest';
export function FacetColumnRequestFromJSON(json) {
    return FacetColumnRequestFromJSONTyped(json, false);
}
export function FacetColumnRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.FacetColumnRangeRequest':
            return Object.assign({}, FacetColumnRangeRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnRangeRequest' });
        case 'org.sagebionetworks.repo.model.table.FacetColumnValuesRequest':
            return Object.assign({}, FacetColumnValuesRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnValuesRequest' });
        default:
            return json;
    }
}
export function FacetColumnRequestToJSON(json) {
    return FacetColumnRequestToJSONTyped(json, false);
}
export function FacetColumnRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.FacetColumnRangeRequest':
            return Object.assign({}, FacetColumnRangeRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnRangeRequest' });
        case 'org.sagebionetworks.repo.model.table.FacetColumnValuesRequest':
            return Object.assign({}, FacetColumnValuesRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnValuesRequest' });
        default:
            return value;
    }
}
//# sourceMappingURL=FacetColumnRequest.js.map