/* 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';
import { ExternalStorageLocationSettingFromJSONTyped, ExternalStorageLocationSettingToJSON, } from './ExternalStorageLocationSetting';
import { ProxyStorageLocationSettingsFromJSONTyped, ProxyStorageLocationSettingsToJSON, } from './ProxyStorageLocationSettings';
import { S3StorageLocationSettingFromJSONTyped, S3StorageLocationSettingToJSON, } from './S3StorageLocationSetting';
export function StorageLocationSettingFromJSON(json) {
    return StorageLocationSettingFromJSONTyped(json, false);
}
export function StorageLocationSettingFromJSONTyped(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' });
        case 'org.sagebionetworks.repo.model.project.ExternalStorageLocationSetting':
            return Object.assign({}, ExternalStorageLocationSettingFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalStorageLocationSetting' });
        case 'org.sagebionetworks.repo.model.project.ProxyStorageLocationSettings':
            return Object.assign({}, ProxyStorageLocationSettingsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.ProxyStorageLocationSettings' });
        case 'org.sagebionetworks.repo.model.project.S3StorageLocationSetting':
            return Object.assign({}, S3StorageLocationSettingFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.S3StorageLocationSetting' });
        default:
            return json;
    }
}
export function StorageLocationSettingToJSON(json) {
    return StorageLocationSettingToJSONTyped(json, false);
}
export function StorageLocationSettingToJSONTyped(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' });
        case 'org.sagebionetworks.repo.model.project.ExternalStorageLocationSetting':
            return Object.assign({}, ExternalStorageLocationSettingToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.ExternalStorageLocationSetting' });
        case 'org.sagebionetworks.repo.model.project.ProxyStorageLocationSettings':
            return Object.assign({}, ProxyStorageLocationSettingsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.ProxyStorageLocationSettings' });
        case 'org.sagebionetworks.repo.model.project.S3StorageLocationSetting':
            return Object.assign({}, S3StorageLocationSettingToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.S3StorageLocationSetting' });
        default:
            return value;
    }
}
//# sourceMappingURL=StorageLocationSetting.js.map