/* 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 { RescoreQueryFromJSON, RescoreQueryToJSON, } from './RescoreQuery';
/**
 * Check if a given object implements the Rescore interface.
 */
export function instanceOfRescore(value) {
    return true;
}
export function RescoreFromJSON(json) {
    return RescoreFromJSONTyped(json, false);
}
export function RescoreFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'window_size': json['window_size'] == null ? undefined : json['window_size'],
        'query': json['query'] == null ? undefined : RescoreQueryFromJSON(json['query']),
    };
}
export function RescoreToJSON(json) {
    return RescoreToJSONTyped(json, false);
}
export function RescoreToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'window_size': value['window_size'],
        'query': RescoreQueryToJSON(value['query']),
    };
}
//# sourceMappingURL=Rescore.js.map