/* 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 GridSessionAuthorizationModeEnum = {
    SESSION_OWNER: 'SESSION_OWNER',
    SOURCE_BENEFACTOR: 'SOURCE_BENEFACTOR'
};
/**
 * Check if a given object implements the GridSession interface.
 */
export function instanceOfGridSession(value) {
    return true;
}
export function GridSessionFromJSON(json) {
    return GridSessionFromJSONTyped(json, false);
}
export function GridSessionFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
        'startedBy': json['startedBy'] == null ? undefined : json['startedBy'],
        'startedOn': json['startedOn'] == null ? undefined : json['startedOn'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'lastReplicaIdClient': json['lastReplicaIdClient'] == null ? undefined : json['lastReplicaIdClient'],
        'lastReplicaIdService': json['lastReplicaIdService'] == null ? undefined : json['lastReplicaIdService'],
        'gridJsonSchema$Id': json['gridJsonSchema$Id'] == null ? undefined : json['gridJsonSchema$Id'],
        'sourceEntityId': json['sourceEntityId'] == null ? undefined : json['sourceEntityId'],
        'sourceEntityVersionNumber': json['sourceEntityVersionNumber'] == null ? undefined : json['sourceEntityVersionNumber'],
        'ownerPrincipalId': json['ownerPrincipalId'] == null ? undefined : json['ownerPrincipalId'],
        'authorizationMode': json['authorizationMode'] == null ? undefined : json['authorizationMode'],
    };
}
export function GridSessionToJSON(json) {
    return GridSessionToJSONTyped(json, false);
}
export function GridSessionToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'sessionId': value['sessionId'],
        'startedBy': value['startedBy'],
        'startedOn': value['startedOn'],
        'etag': value['etag'],
        'modifiedOn': value['modifiedOn'],
        'lastReplicaIdClient': value['lastReplicaIdClient'],
        'lastReplicaIdService': value['lastReplicaIdService'],
        'gridJsonSchema$Id': value['gridJsonSchema$Id'],
        'sourceEntityId': value['sourceEntityId'],
        'sourceEntityVersionNumber': value['sourceEntityVersionNumber'],
        'ownerPrincipalId': value['ownerPrincipalId'],
        'authorizationMode': value['authorizationMode'],
    };
}
//# sourceMappingURL=GridSession.js.map