/* 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.
 */
/**
 * @export
 */
export const TextMatchesQueryFilterConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_TextMatchesQueryFilter: 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter'
};
/**
 * @export
 */
export const TextMatchesQueryFilterSearchModeEnum = {
    NATURAL_LANGUAGE: 'NATURAL_LANGUAGE',
    BOOLEAN: 'BOOLEAN'
};
/**
 * Check if a given object implements the TextMatchesQueryFilter interface.
 */
export function instanceOfTextMatchesQueryFilter(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TextMatchesQueryFilterConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TextMatchesQueryFilterFromJSON(json) {
    return TextMatchesQueryFilterFromJSONTyped(json, false);
}
export function TextMatchesQueryFilterFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'isDefiningCondition': json['isDefiningCondition'] == null ? undefined : json['isDefiningCondition'],
        'searchExpression': json['searchExpression'] == null ? undefined : json['searchExpression'],
        'searchMode': json['searchMode'] == null ? undefined : json['searchMode'],
    };
}
export function TextMatchesQueryFilterToJSON(json) {
    return TextMatchesQueryFilterToJSONTyped(json, false);
}
export function TextMatchesQueryFilterToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'isDefiningCondition': value['isDefiningCondition'],
        'searchExpression': value['searchExpression'],
        'searchMode': value['searchMode'],
    };
}
//# sourceMappingURL=TextMatchesQueryFilter.js.map