/* 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 MultiMatchQuery interface.
 */
export function instanceOfMultiMatchQuery(value) {
    return true;
}
export function MultiMatchQueryFromJSON(json) {
    return MultiMatchQueryFromJSONTyped(json, false);
}
export function MultiMatchQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'boost': json['boost'] == null ? undefined : json['boost'],
        '_name': json['_name'] == null ? undefined : json['_name'],
        'fuzziness': json['fuzziness'] == null ? undefined : json['fuzziness'],
        'fuzzy_rewrite': json['fuzzy_rewrite'] == null ? undefined : json['fuzzy_rewrite'],
        'fuzzy_transpositions': json['fuzzy_transpositions'] == null ? undefined : json['fuzzy_transpositions'],
        'prefix_length': json['prefix_length'] == null ? undefined : json['prefix_length'],
        'minimum_should_match': json['minimum_should_match'] == null ? undefined : json['minimum_should_match'],
        'zero_terms_query': json['zero_terms_query'] == null ? undefined : json['zero_terms_query'],
        'query': json['query'] == null ? undefined : json['query'],
        'fields': json['fields'] == null ? undefined : json['fields'],
        'type': json['type'] == null ? undefined : json['type'],
        'operator': json['operator'] == null ? undefined : json['operator'],
        'tie_breaker': json['tie_breaker'] == null ? undefined : json['tie_breaker'],
        'analyzer': json['analyzer'] == null ? undefined : json['analyzer'],
        'max_expansions': json['max_expansions'] == null ? undefined : json['max_expansions'],
        'slop': json['slop'] == null ? undefined : json['slop'],
        'cutoff_frequency': json['cutoff_frequency'] == null ? undefined : json['cutoff_frequency'],
        'auto_generate_synonyms_phrase_query': json['auto_generate_synonyms_phrase_query'] == null ? undefined : json['auto_generate_synonyms_phrase_query'],
        'lenient': json['lenient'] == null ? undefined : json['lenient'],
    };
}
export function MultiMatchQueryToJSON(json) {
    return MultiMatchQueryToJSONTyped(json, false);
}
export function MultiMatchQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'boost': value['boost'],
        '_name': value['_name'],
        'fuzziness': value['fuzziness'],
        'fuzzy_rewrite': value['fuzzy_rewrite'],
        'fuzzy_transpositions': value['fuzzy_transpositions'],
        'prefix_length': value['prefix_length'],
        'minimum_should_match': value['minimum_should_match'],
        'zero_terms_query': value['zero_terms_query'],
        'query': value['query'],
        'fields': value['fields'],
        'type': value['type'],
        'operator': value['operator'],
        'tie_breaker': value['tie_breaker'],
        'analyzer': value['analyzer'],
        'max_expansions': value['max_expansions'],
        'slop': value['slop'],
        'cutoff_frequency': value['cutoff_frequency'],
        'auto_generate_synonyms_phrase_query': value['auto_generate_synonyms_phrase_query'],
        'lenient': value['lenient'],
    };
}
//# sourceMappingURL=MultiMatchQuery.js.map