/* 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 { MultipartUploadCopyRequestFromJSONTyped, MultipartUploadCopyRequestToJSON, } from './MultipartUploadCopyRequest';
import { MultipartUploadRequestFromJSONTyped, MultipartUploadRequestToJSON, } from './MultipartUploadRequest';
export function MultipartRequestFromJSON(json) {
    return MultipartRequestFromJSONTyped(json, false);
}
export function MultipartRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.file.MultipartUploadCopyRequest':
            return Object.assign({}, MultipartUploadCopyRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.file.MultipartUploadCopyRequest' });
        case 'org.sagebionetworks.repo.model.file.MultipartUploadRequest':
            return Object.assign({}, MultipartUploadRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.file.MultipartUploadRequest' });
        default:
            return json;
    }
}
export function MultipartRequestToJSON(json) {
    return MultipartRequestToJSONTyped(json, false);
}
export function MultipartRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.file.MultipartUploadCopyRequest':
            return Object.assign({}, MultipartUploadCopyRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.file.MultipartUploadCopyRequest' });
        case 'org.sagebionetworks.repo.model.file.MultipartUploadRequest':
            return Object.assign({}, MultipartUploadRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.file.MultipartUploadRequest' });
        default:
            return value;
    }
}
//# sourceMappingURL=MultipartRequest.js.map