/* 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.
 */
/**
 * @export
 */
export const GridAgentSessionContextConcreteTypeEnum = {
    org_sagebionetworks_repo_model_agent_GridAgentSessionContext: 'org.sagebionetworks.repo.model.agent.GridAgentSessionContext'
};
/**
 * Check if a given object implements the GridAgentSessionContext interface.
 */
export function instanceOfGridAgentSessionContext(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(GridAgentSessionContextConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function GridAgentSessionContextFromJSON(json) {
    return GridAgentSessionContextFromJSONTyped(json, false);
}
export function GridAgentSessionContextFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'gridSessionId': json['gridSessionId'] == null ? undefined : json['gridSessionId'],
        'usersReplicaId': json['usersReplicaId'] == null ? undefined : json['usersReplicaId'],
        'agentsReplicaId': json['agentsReplicaId'] == null ? undefined : json['agentsReplicaId'],
    };
}
export function GridAgentSessionContextToJSON(json) {
    return GridAgentSessionContextToJSONTyped(json, false);
}
export function GridAgentSessionContextToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'gridSessionId': value['gridSessionId'],
        'usersReplicaId': value['usersReplicaId'],
        'agentsReplicaId': value['agentsReplicaId'],
    };
}
//# sourceMappingURL=GridAgentSessionContext.js.map