/* 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 { GridAgentSessionContextFromJSON, GridAgentSessionContextToJSON, } from './GridAgentSessionContext';
/**
 * @export
 */
export const CreateAgentSessionRequestAgentAccessLevelEnum = {
    PUBLICLY_ACCESSIBLE: 'PUBLICLY_ACCESSIBLE',
    READ_YOUR_PRIVATE_DATA: 'READ_YOUR_PRIVATE_DATA',
    WRITE_YOUR_PRIVATE_DATA: 'WRITE_YOUR_PRIVATE_DATA'
};
/**
 * Check if a given object implements the CreateAgentSessionRequest interface.
 */
export function instanceOfCreateAgentSessionRequest(value) {
    return true;
}
export function CreateAgentSessionRequestFromJSON(json) {
    return CreateAgentSessionRequestFromJSONTyped(json, false);
}
export function CreateAgentSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'agentAccessLevel': json['agentAccessLevel'] == null ? undefined : json['agentAccessLevel'],
        'agentRegistrationId': json['agentRegistrationId'] == null ? undefined : json['agentRegistrationId'],
        'sessionContext': json['sessionContext'] == null ? undefined : GridAgentSessionContextFromJSON(json['sessionContext']),
    };
}
export function CreateAgentSessionRequestToJSON(json) {
    return CreateAgentSessionRequestToJSONTyped(json, false);
}
export function CreateAgentSessionRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'agentAccessLevel': value['agentAccessLevel'],
        'agentRegistrationId': value['agentRegistrationId'],
        'sessionContext': GridAgentSessionContextToJSON(value['sessionContext']),
    };
}
//# sourceMappingURL=CreateAgentSessionRequest.js.map