/* 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 DisMaxQuery interface.
 */
export function instanceOfDisMaxQuery(value) {
    return true;
}
export function DisMaxQueryFromJSON(json) {
    return DisMaxQueryFromJSONTyped(json, false);
}
export function DisMaxQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'queries': json['queries'] == null ? undefined : (json['queries'].map(DisMaxQueryFromJSON)),
        'tie_breaker': json['tie_breaker'] == null ? undefined : json['tie_breaker'],
        'boost': json['boost'] == null ? undefined : json['boost'],
        '_name': json['_name'] == null ? undefined : json['_name'],
    };
}
export function DisMaxQueryToJSON(json) {
    return DisMaxQueryToJSONTyped(json, false);
}
export function DisMaxQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'queries': value['queries'] == null ? undefined : (value['queries'].map(DisMaxQueryToJSON)),
        'tie_breaker': value['tie_breaker'],
        'boost': value['boost'],
        '_name': value['_name'],
    };
}
//# sourceMappingURL=DisMaxQuery.js.map