/* 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 FileHandleSnapshotConcreteTypeEnum = {
    org_sagebionetworks_repo_model_audit_FileHandleSnapshot: 'org.sagebionetworks.repo.model.audit.FileHandleSnapshot'
};
/**
 * @export
 */
export const FileHandleSnapshotStatusEnum = {
    AVAILABLE: 'AVAILABLE',
    UNLINKED: 'UNLINKED',
    ARCHIVED: 'ARCHIVED'
};
/**
 * Check if a given object implements the FileHandleSnapshot interface.
 */
export function instanceOfFileHandleSnapshot(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(FileHandleSnapshotConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function FileHandleSnapshotFromJSON(json) {
    return FileHandleSnapshotFromJSONTyped(json, false);
}
export function FileHandleSnapshotFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'concreteType': json['concreteType'],
        'contentMd5': json['contentMd5'] == null ? undefined : json['contentMd5'],
        'contentType': json['contentType'] == null ? undefined : json['contentType'],
        'fileName': json['fileName'] == null ? undefined : json['fileName'],
        'storageLocationId': json['storageLocationId'] == null ? undefined : json['storageLocationId'],
        'contentSize': json['contentSize'] == null ? undefined : json['contentSize'],
        'key': json['key'] == null ? undefined : json['key'],
        'bucket': json['bucket'] == null ? undefined : json['bucket'],
        'previewId': json['previewId'] == null ? undefined : json['previewId'],
        'isPreview': json['isPreview'] == null ? undefined : json['isPreview'],
        'status': json['status'] == null ? undefined : json['status'],
    };
}
export function FileHandleSnapshotToJSON(json) {
    return FileHandleSnapshotToJSONTyped(json, false);
}
export function FileHandleSnapshotToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'concreteType': value['concreteType'],
        'contentMd5': value['contentMd5'],
        'contentType': value['contentType'],
        'fileName': value['fileName'],
        'storageLocationId': value['storageLocationId'],
        'contentSize': value['contentSize'],
        'key': value['key'],
        'bucket': value['bucket'],
        'previewId': value['previewId'],
        'isPreview': value['isPreview'],
        'status': value['status'],
    };
}
//# sourceMappingURL=FileHandleSnapshot.js.map