/* 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 FileEventRecordAssociateTypeEnum = {
    FileEntity: 'FileEntity',
    TableEntity: 'TableEntity',
    WikiAttachment: 'WikiAttachment',
    WikiMarkdown: 'WikiMarkdown',
    UserProfileAttachment: 'UserProfileAttachment',
    MessageAttachment: 'MessageAttachment',
    TeamAttachment: 'TeamAttachment',
    SubmissionAttachment: 'SubmissionAttachment',
    VerificationSubmission: 'VerificationSubmission',
    AccessRequirementAttachment: 'AccessRequirementAttachment',
    DataAccessRequestAttachment: 'DataAccessRequestAttachment',
    DataAccessSubmissionAttachment: 'DataAccessSubmissionAttachment',
    FormData: 'FormData'
};
/**
 * Check if a given object implements the FileEventRecord interface.
 */
export function instanceOfFileEventRecord(value) {
    if (!('userId' in value) || value['userId'] === undefined)
        return false;
    if (!('fileHandleId' in value) || value['fileHandleId'] === undefined)
        return false;
    if (!('associateId' in value) || value['associateId'] === undefined)
        return false;
    return true;
}
export function FileEventRecordFromJSON(json) {
    return FileEventRecordFromJSONTyped(json, false);
}
export function FileEventRecordFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'userId': json['userId'],
        'projectId': json['projectId'] == null ? undefined : json['projectId'],
        'fileHandleId': json['fileHandleId'],
        'downloadedFileHandleId': json['downloadedFileHandleId'] == null ? undefined : json['downloadedFileHandleId'],
        'associateType': json['associateType'] == null ? undefined : json['associateType'],
        'associateId': json['associateId'],
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
    };
}
export function FileEventRecordToJSON(json) {
    return FileEventRecordToJSONTyped(json, false);
}
export function FileEventRecordToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'userId': value['userId'],
        'projectId': value['projectId'],
        'fileHandleId': value['fileHandleId'],
        'downloadedFileHandleId': value['downloadedFileHandleId'],
        'associateType': value['associateType'],
        'associateId': value['associateId'],
        'sessionId': value['sessionId'],
    };
}
//# sourceMappingURL=FileEventRecord.js.map