/* 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 S3FileHandleConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_S3FileHandle: 'org.sagebionetworks.repo.model.file.S3FileHandle'
};
/**
 * @export
 */
export const S3FileHandleStatusEnum = {
    AVAILABLE: 'AVAILABLE',
    UNLINKED: 'UNLINKED',
    ARCHIVED: 'ARCHIVED'
};
/**
 * Check if a given object implements the S3FileHandle interface.
 */
export function instanceOfS3FileHandle(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(S3FileHandleConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function S3FileHandleFromJSON(json) {
    return S3FileHandleFromJSONTyped(json, false);
}
export function S3FileHandleFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'id': json['id'] == null ? undefined : json['id'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'createdBy': json['createdBy'] == null ? undefined : json['createdBy'],
        'createdOn': json['createdOn'] == null ? undefined : json['createdOn'],
        'modifiedOn': json['modifiedOn'] == null ? undefined : json['modifiedOn'],
        'concreteType': json['concreteType'],
        'contentType': json['contentType'] == null ? undefined : json['contentType'],
        'contentMd5': json['contentMd5'] == null ? undefined : json['contentMd5'],
        'fileName': json['fileName'] == null ? undefined : json['fileName'],
        'storageLocationId': json['storageLocationId'] == null ? undefined : json['storageLocationId'],
        'contentSize': json['contentSize'] == null ? undefined : json['contentSize'],
        'status': json['status'] == null ? undefined : json['status'],
        'bucketName': json['bucketName'] == null ? undefined : json['bucketName'],
        'key': json['key'] == null ? undefined : json['key'],
        'previewId': json['previewId'] == null ? undefined : json['previewId'],
        'isPreview': json['isPreview'] == null ? undefined : json['isPreview'],
    };
}
export function S3FileHandleToJSON(json) {
    return S3FileHandleToJSONTyped(json, false);
}
export function S3FileHandleToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'id': value['id'],
        'etag': value['etag'],
        'createdBy': value['createdBy'],
        'createdOn': value['createdOn'],
        'modifiedOn': value['modifiedOn'],
        'concreteType': value['concreteType'],
        'contentType': value['contentType'],
        'contentMd5': value['contentMd5'],
        'fileName': value['fileName'],
        'storageLocationId': value['storageLocationId'],
        'contentSize': value['contentSize'],
        'status': value['status'],
        'bucketName': value['bucketName'],
        'key': value['key'],
        'previewId': value['previewId'],
        'isPreview': value['isPreview'],
    };
}
//# sourceMappingURL=S3FileHandle.js.map