/* 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 { ColumnMultiValueFunctionQueryFilterFromJSONTyped, ColumnMultiValueFunctionQueryFilterToJSON, } from './ColumnMultiValueFunctionQueryFilter';
import { ColumnSingleValueQueryFilterFromJSONTyped, ColumnSingleValueQueryFilterToJSON, } from './ColumnSingleValueQueryFilter';
import { TextMatchesQueryFilterFromJSONTyped, TextMatchesQueryFilterToJSON, } from './TextMatchesQueryFilter';
export function QueryFilterFromJSON(json) {
    return QueryFilterFromJSONTyped(json, false);
}
export function QueryFilterFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter':
            return Object.assign({}, ColumnMultiValueFunctionQueryFilterFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter' });
        case 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter':
            return Object.assign({}, ColumnSingleValueQueryFilterFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter' });
        case 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter':
            return Object.assign({}, TextMatchesQueryFilterFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter' });
        default:
            return json;
    }
}
export function QueryFilterToJSON(json) {
    return QueryFilterToJSONTyped(json, false);
}
export function QueryFilterToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter':
            return Object.assign({}, ColumnMultiValueFunctionQueryFilterToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter' });
        case 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter':
            return Object.assign({}, ColumnSingleValueQueryFilterToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.ColumnSingleValueQueryFilter' });
        case 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter':
            return Object.assign({}, TextMatchesQueryFilterToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter' });
        default:
            return value;
    }
}
//# sourceMappingURL=QueryFilter.js.map