/* 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 MatchPhraseFieldOptions interface.
 */
export function instanceOfMatchPhraseFieldOptions(value) {
    return true;
}
export function MatchPhraseFieldOptionsFromJSON(json) {
    return MatchPhraseFieldOptionsFromJSONTyped(json, false);
}
export function MatchPhraseFieldOptionsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'boost': json['boost'] == null ? undefined : json['boost'],
        '_name': json['_name'] == null ? undefined : json['_name'],
        'zero_terms_query': json['zero_terms_query'] == null ? undefined : json['zero_terms_query'],
        'query': json['query'] == null ? undefined : json['query'],
        'analyzer': json['analyzer'] == null ? undefined : json['analyzer'],
        'slop': json['slop'] == null ? undefined : json['slop'],
    };
}
export function MatchPhraseFieldOptionsToJSON(json) {
    return MatchPhraseFieldOptionsToJSONTyped(json, false);
}
export function MatchPhraseFieldOptionsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'boost': value['boost'],
        '_name': value['_name'],
        'zero_terms_query': value['zero_terms_query'],
        'query': value['query'],
        'analyzer': value['analyzer'],
        'slop': value['slop'],
    };
}
//# sourceMappingURL=MatchPhraseFieldOptions.js.map