/* 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 AgentSessionAgentAccessLevelEnum = {
    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 AgentSession interface.
 */
export function instanceOfAgentSession(value) {
    return true;
}
export function AgentSessionFromJSON(json) {
    return AgentSessionFromJSONTyped(json, false);
}
export function AgentSessionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
        'agentAccessLevel': json['agentAccessLevel'] == null ? undefined : json['agentAccessLevel'],
        'startedOn': json['startedOn'] == null ? undefined : json['startedOn'],
        'startedBy': json['startedBy'] == null ? undefined : json['startedBy'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'agentRegistrationId': json['agentRegistrationId'] == null ? undefined : json['agentRegistrationId'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'sessionContext': json['sessionContext'] == null ? undefined : GridAgentSessionContextFromJSON(json['sessionContext']),
    };
}
export function AgentSessionToJSON(json) {
    return AgentSessionToJSONTyped(json, false);
}
export function AgentSessionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'sessionId': value['sessionId'],
        'agentAccessLevel': value['agentAccessLevel'],
        'startedOn': value['startedOn'],
        'startedBy': value['startedBy'],
        'modifiedOn': value['modifiedOn'],
        'agentRegistrationId': value['agentRegistrationId'],
        'etag': value['etag'],
        'sessionContext': GridAgentSessionContextToJSON(value['sessionContext']),
    };
}
//# sourceMappingURL=AgentSession.js.map