/* 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.
 */
import { FileHandleAssociationFromJSON, FileHandleAssociationToJSON, } from './FileHandleAssociation';
/**
 * @export
 */
export const MultipartUploadCopyRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_MultipartUploadCopyRequest: 'org.sagebionetworks.repo.model.file.MultipartUploadCopyRequest'
};
/**
 * Check if a given object implements the MultipartUploadCopyRequest interface.
 */
export function instanceOfMultipartUploadCopyRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(MultipartUploadCopyRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function MultipartUploadCopyRequestFromJSON(json) {
    return MultipartUploadCopyRequestFromJSONTyped(json, false);
}
export function MultipartUploadCopyRequestFromJSONTyped(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'],
        'sourceFileHandleAssociation': json['sourceFileHandleAssociation'] == null ? undefined : FileHandleAssociationFromJSON(json['sourceFileHandleAssociation']),
    };
}
export function MultipartUploadCopyRequestToJSON(json) {
    return MultipartUploadCopyRequestToJSONTyped(json, false);
}
export function MultipartUploadCopyRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'partSizeBytes': value['partSizeBytes'],
        'fileName': value['fileName'],
        'storageLocationId': value['storageLocationId'],
        'generatePreview': value['generatePreview'],
        'sourceFileHandleAssociation': FileHandleAssociationToJSON(value['sourceFileHandleAssociation']),
    };
}
//# sourceMappingURL=MultipartUploadCopyRequest.js.map