/* 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';
export function HasValuesFromJSON(json) {
    return HasValuesFromJSONTyped(json, false);
}
export function HasValuesFromJSONTyped(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' });
        default:
            return json;
    }
}
export function HasValuesToJSON(json) {
    return HasValuesToJSONTyped(json, false);
}
export function HasValuesToJSONTyped(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' });
        default:
            return value;
    }
}
//# sourceMappingURL=HasValues.js.map