/* 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 { ExternalGoogleCloudStorageLocationSettingFromJSONTyped, ExternalGoogleCloudStorageLocationSettingToJSON, } from './ExternalGoogleCloudStorageLocationSetting';
import { ExternalObjectStorageLocationSettingFromJSONTyped, ExternalObjectStorageLocationSettingToJSON, } from './ExternalObjectStorageLocationSetting';
import { ExternalS3StorageLocationSettingFromJSONTyped, ExternalS3StorageLocationSettingToJSON, } from './ExternalS3StorageLocationSetting';
export function BucketStorageLocationSettingFromJSON(json) {
    return BucketStorageLocationSettingFromJSONTyped(json, false);
}
export function BucketStorageLocationSettingFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.project.ExternalGoogleCloudStorageLocationSetting':
            return Object.assign({}, ExternalGoogleCloudStorageLocationSettingFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalGoogleCloudStorageLocationSetting' });
        case 'org.sagebionetworks.repo.model.project.ExternalObjectStorageLocationSetting':
            return Object.assign({}, ExternalObjectStorageLocationSettingFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalObjectStorageLocationSetting' });
        case 'org.sagebionetworks.repo.model.project.ExternalS3StorageLocationSetting':
            return Object.assign({}, ExternalS3StorageLocationSettingFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalS3StorageLocationSetting' });
        default:
            return json;
    }
}
export function BucketStorageLocationSettingToJSON(json) {
    return BucketStorageLocationSettingToJSONTyped(json, false);
}
export function BucketStorageLocationSettingToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.project.ExternalGoogleCloudStorageLocationSetting':
            return Object.assign({}, ExternalGoogleCloudStorageLocationSettingToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalGoogleCloudStorageLocationSetting' });
        case 'org.sagebionetworks.repo.model.project.ExternalObjectStorageLocationSetting':
            return Object.assign({}, ExternalObjectStorageLocationSettingToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalObjectStorageLocationSetting' });
        case 'org.sagebionetworks.repo.model.project.ExternalS3StorageLocationSetting':
            return Object.assign({}, ExternalS3StorageLocationSettingToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalS3StorageLocationSetting' });
        default:
            return value;
    }
}
//# sourceMappingURL=BucketStorageLocationSetting.js.map