/* 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 { FileBasedMetadataTaskPropertiesFromJSONTyped, FileBasedMetadataTaskPropertiesToJSON, } from './FileBasedMetadataTaskProperties';
import { RecordBasedMetadataTaskPropertiesFromJSONTyped, RecordBasedMetadataTaskPropertiesToJSON, } from './RecordBasedMetadataTaskProperties';
import { RecordSetGenerationExecutionPropertiesFromJSONTyped, RecordSetGenerationExecutionPropertiesToJSON, } from './RecordSetGenerationExecutionProperties';
import { SampleSheetGenerationExecutionPropertiesFromJSONTyped, SampleSheetGenerationExecutionPropertiesToJSON, } from './SampleSheetGenerationExecutionProperties';
export function CurationTaskPropertiesFromJSON(json) {
    return CurationTaskPropertiesFromJSONTyped(json, false);
}
export function CurationTaskPropertiesFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionProperties':
            return Object.assign({}, RecordSetGenerationExecutionPropertiesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionProperties' });
        case 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionProperties':
            return Object.assign({}, SampleSheetGenerationExecutionPropertiesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionProperties' });
        case 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties':
            return Object.assign({}, FileBasedMetadataTaskPropertiesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties' });
        case 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties':
            return Object.assign({}, RecordBasedMetadataTaskPropertiesFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties' });
        default:
            return json;
    }
}
export function CurationTaskPropertiesToJSON(json) {
    return CurationTaskPropertiesToJSONTyped(json, false);
}
export function CurationTaskPropertiesToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionProperties':
            return Object.assign({}, RecordSetGenerationExecutionPropertiesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionProperties' });
        case 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionProperties':
            return Object.assign({}, SampleSheetGenerationExecutionPropertiesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionProperties' });
        case 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties':
            return Object.assign({}, FileBasedMetadataTaskPropertiesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.FileBasedMetadataTaskProperties' });
        case 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties':
            return Object.assign({}, RecordBasedMetadataTaskPropertiesToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.metadata.RecordBasedMetadataTaskProperties' });
        default:
            return value;
    }
}
//# sourceMappingURL=CurationTaskProperties.js.map