/* 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 Suggestion interface.
 */
export function instanceOfSuggestion(value) {
    return true;
}
export function SuggestionFromJSON(json) {
    return SuggestionFromJSONTyped(json, false);
}
export function SuggestionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'term': json['term'] == null ? undefined : json['term'],
        'score': json['score'] == null ? undefined : json['score'],
        'frequency': json['frequency'] == null ? undefined : json['frequency'],
    };
}
export function SuggestionToJSON(json) {
    return SuggestionToJSONTyped(json, false);
}
export function SuggestionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'term': value['term'],
        'score': value['score'],
        'frequency': value['frequency'],
    };
}
//# sourceMappingURL=Suggestion.js.map