/* 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 { QueryQueryFromJSON, QueryQueryToJSON, } from './QueryQuery';
/**
 * Check if a given object implements the QueryRequest interface.
 */
export function instanceOfQueryRequest(value) {
    return true;
}
export function QueryRequestFromJSON(json) {
    return QueryRequestFromJSONTyped(json, false);
}
export function QueryRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'query': json['query'] == null ? undefined : QueryQueryFromJSON(json['query']),
    };
}
export function QueryRequestToJSON(json) {
    return QueryRequestToJSONTyped(json, false);
}
export function QueryRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'query': QueryQueryToJSON(value['query']),
    };
}
//# sourceMappingURL=QueryRequest.js.map