/* 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 MultipartUploadRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_MultipartUploadRequest: 'org.sagebionetworks.repo.model.file.MultipartUploadRequest'
};
/**
 * Check if a given object implements the MultipartUploadRequest interface.
 */
export function instanceOfMultipartUploadRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(MultipartUploadRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function MultipartUploadRequestFromJSON(json) {
    return MultipartUploadRequestFromJSONTyped(json, false);
}
export function MultipartUploadRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'partSizeBytes': json['partSizeBytes'] == null ? undefined : json['partSizeBytes'],
        'fileName': json['fileName'] == null ? undefined : json['fileName'],
        'storageLocationId': json['storageLocationId'] == null ? undefined : json['storageLocationId'],
        'generatePreview': json['generatePreview'] == null ? undefined : json['generatePreview'],
        'contentMD5Hex': json['contentMD5Hex'] == null ? undefined : json['contentMD5Hex'],
        'contentType': json['contentType'] == null ? undefined : json['contentType'],
        'fileSizeBytes': json['fileSizeBytes'] == null ? undefined : json['fileSizeBytes'],
    };
}
export function MultipartUploadRequestToJSON(json) {
    return MultipartUploadRequestToJSONTyped(json, false);
}
export function MultipartUploadRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'partSizeBytes': value['partSizeBytes'],
        'fileName': value['fileName'],
        'storageLocationId': value['storageLocationId'],
        'generatePreview': value['generatePreview'],
        'contentMD5Hex': value['contentMD5Hex'],
        'contentType': value['contentType'],
        'fileSizeBytes': value['fileSizeBytes'],
    };
}
//# sourceMappingURL=MultipartUploadRequest.js.map