/* 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 { SourceFilterFromJSON, SourceFilterToJSON, } from './SourceFilter';
import { DslQueryFromJSON, DslQueryToJSON, } from './DslQuery';
/**
 * Check if a given object implements the SearchAutocompleteBody interface.
 */
export function instanceOfSearchAutocompleteBody(value) {
    return true;
}
export function SearchAutocompleteBodyFromJSON(json) {
    return SearchAutocompleteBodyFromJSONTyped(json, false);
}
export function SearchAutocompleteBodyFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'query': json['query'] == null ? undefined : DslQueryFromJSON(json['query']),
        '_source': json['_source'] == null ? undefined : SourceFilterFromJSON(json['_source']),
    };
}
export function SearchAutocompleteBodyToJSON(json) {
    return SearchAutocompleteBodyToJSONTyped(json, false);
}
export function SearchAutocompleteBodyToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'query': DslQueryToJSON(value['query']),
        '_source': SourceFilterToJSON(value['_source']),
    };
}
//# sourceMappingURL=SearchAutocompleteBody.js.map