/* 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 MatchBoolPrefixFieldOptions interface.
 */
export function instanceOfMatchBoolPrefixFieldOptions(value) {
    return true;
}
export function MatchBoolPrefixFieldOptionsFromJSON(json) {
    return MatchBoolPrefixFieldOptionsFromJSONTyped(json, false);
}
export function MatchBoolPrefixFieldOptionsFromJSONTyped(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'],
        'query': json['query'] == null ? undefined : json['query'],
        'operator': json['operator'] == null ? undefined : json['operator'],
        'analyzer': json['analyzer'] == null ? undefined : json['analyzer'],
        'max_expansions': json['max_expansions'] == null ? undefined : json['max_expansions'],
    };
}
export function MatchBoolPrefixFieldOptionsToJSON(json) {
    return MatchBoolPrefixFieldOptionsToJSONTyped(json, false);
}
export function MatchBoolPrefixFieldOptionsToJSONTyped(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'],
        'query': value['query'],
        'operator': value['operator'],
        'analyzer': value['analyzer'],
        'max_expansions': value['max_expansions'],
    };
}
//# sourceMappingURL=MatchBoolPrefixFieldOptions.js.map