/* 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 { GridSessionFromJSON, GridSessionToJSON, } from './GridSession';
/**
 * @export
 */
export const CreateGridResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_grid_CreateGridResponse: 'org.sagebionetworks.repo.model.grid.CreateGridResponse'
};
/**
 * Check if a given object implements the CreateGridResponse interface.
 */
export function instanceOfCreateGridResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(CreateGridResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function CreateGridResponseFromJSON(json) {
    return CreateGridResponseFromJSONTyped(json, false);
}
export function CreateGridResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'gridSession': json['gridSession'] == null ? undefined : GridSessionFromJSON(json['gridSession']),
    };
}
export function CreateGridResponseToJSON(json) {
    return CreateGridResponseToJSONTyped(json, false);
}
export function CreateGridResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'gridSession': GridSessionToJSON(value['gridSession']),
    };
}
//# sourceMappingURL=CreateGridResponse.js.map