/* 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 BoolQuery interface.
 */
export function instanceOfBoolQuery(value) {
    return true;
}
export function BoolQueryFromJSON(json) {
    return BoolQueryFromJSONTyped(json, false);
}
export function BoolQueryFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'must': json['must'] == null ? undefined : (json['must'].map(BoolQueryFromJSON)),
        'should': json['should'] == null ? undefined : (json['should'].map(BoolQueryFromJSON)),
        'must_not': json['must_not'] == null ? undefined : (json['must_not'].map(BoolQueryFromJSON)),
        'filter': json['filter'] == null ? undefined : (json['filter'].map(BoolQueryFromJSON)),
        'minimum_should_match': json['minimum_should_match'] == null ? undefined : json['minimum_should_match'],
        'adjust_pure_negative': json['adjust_pure_negative'] == null ? undefined : json['adjust_pure_negative'],
        'boost': json['boost'] == null ? undefined : json['boost'],
        '_name': json['_name'] == null ? undefined : json['_name'],
    };
}
export function BoolQueryToJSON(json) {
    return BoolQueryToJSONTyped(json, false);
}
export function BoolQueryToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'must': value['must'] == null ? undefined : (value['must'].map(BoolQueryToJSON)),
        'should': value['should'] == null ? undefined : (value['should'].map(BoolQueryToJSON)),
        'must_not': value['must_not'] == null ? undefined : (value['must_not'].map(BoolQueryToJSON)),
        'filter': value['filter'] == null ? undefined : (value['filter'].map(BoolQueryToJSON)),
        'minimum_should_match': value['minimum_should_match'],
        'adjust_pure_negative': value['adjust_pure_negative'],
        'boost': value['boost'],
        '_name': value['_name'],
    };
}
//# sourceMappingURL=BoolQuery.js.map