/* 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 { ExternalS3UploadDestinationFromJSONTyped, ExternalS3UploadDestinationToJSON, } from './ExternalS3UploadDestination';
import { S3UploadDestinationFromJSONTyped, S3UploadDestinationToJSON, } from './S3UploadDestination';
export function StsUploadDestinationFromJSON(json) {
    return StsUploadDestinationFromJSONTyped(json, false);
}
export function StsUploadDestinationFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.file.ExternalS3UploadDestination':
            return Object.assign({}, ExternalS3UploadDestinationFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.file.ExternalS3UploadDestination' });
        case 'org.sagebionetworks.repo.model.file.S3UploadDestination':
            return Object.assign({}, S3UploadDestinationFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.file.S3UploadDestination' });
        default:
            return json;
    }
}
export function StsUploadDestinationToJSON(json) {
    return StsUploadDestinationToJSONTyped(json, false);
}
export function StsUploadDestinationToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.file.ExternalS3UploadDestination':
            return Object.assign({}, ExternalS3UploadDestinationToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.file.ExternalS3UploadDestination' });
        case 'org.sagebionetworks.repo.model.file.S3UploadDestination':
            return Object.assign({}, S3UploadDestinationToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.file.S3UploadDestination' });
        default:
            return value;
    }
}
//# sourceMappingURL=StsUploadDestination.js.map