/* 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 { ExternalS3StorageLocationSettingFromJSONTyped, ExternalS3StorageLocationSettingToJSON, } from './ExternalS3StorageLocationSetting';
import { S3StorageLocationSettingFromJSONTyped, S3StorageLocationSettingToJSON, } from './S3StorageLocationSetting';
export function StsStorageLocationSettingFromJSON(json) {
    return StsStorageLocationSettingFromJSONTyped(json, false);
}
export function StsStorageLocationSettingFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        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.S3StorageLocationSetting':
            return Object.assign({}, S3StorageLocationSettingFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.project.S3StorageLocationSetting' });
        default:
            return json;
    }
}
export function StsStorageLocationSettingToJSON(json) {
    return StsStorageLocationSettingToJSONTyped(json, false);
}
export function StsStorageLocationSettingToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        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.S3StorageLocationSetting':
            return Object.assign({}, S3StorageLocationSettingToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.project.S3StorageLocationSetting' });
        default:
            return value;
    }
}
//# sourceMappingURL=StsStorageLocationSetting.js.map