/* 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 { GridExecutionDetailsFromJSONTyped, GridExecutionDetailsToJSON, } from './GridExecutionDetails';
import { RecordSetGenerationExecutionDetailsFromJSONTyped, RecordSetGenerationExecutionDetailsToJSON, } from './RecordSetGenerationExecutionDetails';
import { SampleSheetGenerationExecutionDetailsFromJSONTyped, SampleSheetGenerationExecutionDetailsToJSON, } from './SampleSheetGenerationExecutionDetails';
export function TaskExecutionDetailsFromJSON(json) {
    return TaskExecutionDetailsFromJSONTyped(json, false);
}
export function TaskExecutionDetailsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.curation.execution.GridExecutionDetails':
            return Object.assign({}, GridExecutionDetailsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.GridExecutionDetails' });
        case 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionDetails':
            return Object.assign({}, RecordSetGenerationExecutionDetailsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionDetails' });
        case 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionDetails':
            return Object.assign({}, SampleSheetGenerationExecutionDetailsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionDetails' });
        default:
            return json;
    }
}
export function TaskExecutionDetailsToJSON(json) {
    return TaskExecutionDetailsToJSONTyped(json, false);
}
export function TaskExecutionDetailsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.curation.execution.GridExecutionDetails':
            return Object.assign({}, GridExecutionDetailsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.GridExecutionDetails' });
        case 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionDetails':
            return Object.assign({}, RecordSetGenerationExecutionDetailsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.RecordSetGenerationExecutionDetails' });
        case 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionDetails':
            return Object.assign({}, SampleSheetGenerationExecutionDetailsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.curation.execution.SampleSheetGenerationExecutionDetails' });
        default:
            return value;
    }
}
//# sourceMappingURL=TaskExecutionDetails.js.map