/* 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 SuggestionQuerySortEnum = {
    SCORE: 'SCORE',
    FREQUENCY: 'FREQUENCY'
};
/**
 * Check if a given object implements the SuggestionQuery interface.
 */
export function instanceOfSuggestionQuery(value) {
    return true;
}
export function SuggestionQueryFromJSON(json) {
    return SuggestionQueryFromJSONTyped(json, false);
}
export function SuggestionQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'searchTerm': json['searchTerm'] == null ? undefined : json['searchTerm'],
        'maxEdit': json['maxEdit'] == null ? undefined : json['maxEdit'],
        'size': json['size'] == null ? undefined : json['size'],
        'sort': json['sort'] == null ? undefined : json['sort'],
    };
}
export function SuggestionQueryToJSON(json) {
    return SuggestionQueryToJSONTyped(json, false);
}
export function SuggestionQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'searchTerm': value['searchTerm'],
        'maxEdit': value['maxEdit'],
        'size': value['size'],
        'sort': value['sort'],
    };
}
//# sourceMappingURL=SuggestionQuery.js.map