/* 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.
 */
import { DslQueryFromJSON, DslQueryToJSON, } from './DslQuery';
/**
 * Check if a given object implements the RescoreQuery interface.
 */
export function instanceOfRescoreQuery(value) {
    return true;
}
export function RescoreQueryFromJSON(json) {
    return RescoreQueryFromJSONTyped(json, false);
}
export function RescoreQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'rescore_query': json['rescore_query'] == null ? undefined : DslQueryFromJSON(json['rescore_query']),
        'query_weight': json['query_weight'] == null ? undefined : json['query_weight'],
        'rescore_query_weight': json['rescore_query_weight'] == null ? undefined : json['rescore_query_weight'],
        'score_mode': json['score_mode'] == null ? undefined : json['score_mode'],
    };
}
export function RescoreQueryToJSON(json) {
    return RescoreQueryToJSONTyped(json, false);
}
export function RescoreQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'rescore_query': DslQueryToJSON(value['rescore_query']),
        'query_weight': value['query_weight'],
        'rescore_query_weight': value['rescore_query_weight'],
        'score_mode': value['score_mode'],
    };
}
//# sourceMappingURL=RescoreQuery.js.map