/* 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 { QueryRequestFromJSON, QueryRequestToJSON, } from './QueryRequest';
/**
 * @export
 */
export const GridQueryJobRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_grid_GridQueryJobRequest: 'org.sagebionetworks.repo.model.grid.GridQueryJobRequest'
};
/**
 * Check if a given object implements the GridQueryJobRequest interface.
 */
export function instanceOfGridQueryJobRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(GridQueryJobRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function GridQueryJobRequestFromJSON(json) {
    return GridQueryJobRequestFromJSONTyped(json, false);
}
export function GridQueryJobRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
        'replicaId': json['replicaId'] == null ? undefined : json['replicaId'],
        'queryRequest': json['queryRequest'] == null ? undefined : QueryRequestFromJSON(json['queryRequest']),
    };
}
export function GridQueryJobRequestToJSON(json) {
    return GridQueryJobRequestToJSONTyped(json, false);
}
export function GridQueryJobRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'sessionId': value['sessionId'],
        'replicaId': value['replicaId'],
        'queryRequest': QueryRequestToJSON(value['queryRequest']),
    };
}
//# sourceMappingURL=GridQueryJobRequest.js.map