/* 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 { ResultQueryResultFromJSON, ResultQueryResultToJSON, } from './ResultQueryResult';
/**
 * @export
 */
export const GridQueryJobResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_grid_GridQueryJobResponse: 'org.sagebionetworks.repo.model.grid.GridQueryJobResponse'
};
/**
 * Check if a given object implements the GridQueryJobResponse interface.
 */
export function instanceOfGridQueryJobResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(GridQueryJobResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function GridQueryJobResponseFromJSON(json) {
    return GridQueryJobResponseFromJSONTyped(json, false);
}
export function GridQueryJobResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'queryResult': json['queryResult'] == null ? undefined : ResultQueryResultFromJSON(json['queryResult']),
    };
}
export function GridQueryJobResponseToJSON(json) {
    return GridQueryJobResponseToJSONTyped(json, false);
}
export function GridQueryJobResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'queryResult': ResultQueryResultToJSON(value['queryResult']),
    };
}
//# sourceMappingURL=GridQueryJobResponse.js.map