/* 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.
 */
/**
 * Check if a given object implements the SimpleQueryStringQuery interface.
 */
export function instanceOfSimpleQueryStringQuery(value) {
    return true;
}
export function SimpleQueryStringQueryFromJSON(json) {
    return SimpleQueryStringQueryFromJSONTyped(json, false);
}
export function SimpleQueryStringQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'boost': json['boost'] == null ? undefined : json['boost'],
        '_name': json['_name'] == null ? undefined : json['_name'],
        'minimum_should_match': json['minimum_should_match'] == null ? undefined : json['minimum_should_match'],
        'query': json['query'] == null ? undefined : json['query'],
        'fields': json['fields'] == null ? undefined : json['fields'],
        'default_operator': json['default_operator'] == null ? undefined : json['default_operator'],
        'flags': json['flags'] == null ? undefined : json['flags'],
        'analyzer': json['analyzer'] == null ? undefined : json['analyzer'],
        'analyze_wildcard': json['analyze_wildcard'] == null ? undefined : json['analyze_wildcard'],
        'auto_generate_synonyms_phrase_query': json['auto_generate_synonyms_phrase_query'] == null ? undefined : json['auto_generate_synonyms_phrase_query'],
        'fuzzy_max_expansions': json['fuzzy_max_expansions'] == null ? undefined : json['fuzzy_max_expansions'],
        'fuzzy_prefix_length': json['fuzzy_prefix_length'] == null ? undefined : json['fuzzy_prefix_length'],
        'fuzzy_transpositions': json['fuzzy_transpositions'] == null ? undefined : json['fuzzy_transpositions'],
        'lenient': json['lenient'] == null ? undefined : json['lenient'],
        'quote_field_suffix': json['quote_field_suffix'] == null ? undefined : json['quote_field_suffix'],
    };
}
export function SimpleQueryStringQueryToJSON(json) {
    return SimpleQueryStringQueryToJSONTyped(json, false);
}
export function SimpleQueryStringQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'boost': value['boost'],
        '_name': value['_name'],
        'minimum_should_match': value['minimum_should_match'],
        'query': value['query'],
        'fields': value['fields'],
        'default_operator': value['default_operator'],
        'flags': value['flags'],
        'analyzer': value['analyzer'],
        'analyze_wildcard': value['analyze_wildcard'],
        'auto_generate_synonyms_phrase_query': value['auto_generate_synonyms_phrase_query'],
        'fuzzy_max_expansions': value['fuzzy_max_expansions'],
        'fuzzy_prefix_length': value['fuzzy_prefix_length'],
        'fuzzy_transpositions': value['fuzzy_transpositions'],
        'lenient': value['lenient'],
        'quote_field_suffix': value['quote_field_suffix'],
    };
}
//# sourceMappingURL=SimpleQueryStringQuery.js.map