/* 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 { ActionRequiredResponseFromJSONTyped, ActionRequiredResponseToJSON, } from './ActionRequiredResponse';
import { AvailableFilesResponseFromJSONTyped, AvailableFilesResponseToJSON, } from './AvailableFilesResponse';
import { FilesStatisticsResponseFromJSONTyped, FilesStatisticsResponseToJSON, } from './FilesStatisticsResponse';
export function QueryResponseDetailsFromJSON(json) {
    return QueryResponseDetailsFromJSONTyped(json, false);
}
export function QueryResponseDetailsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.download.ActionRequiredResponse':
            return Object.assign({}, ActionRequiredResponseFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.download.ActionRequiredResponse' });
        case 'org.sagebionetworks.repo.model.download.AvailableFilesResponse':
            return Object.assign({}, AvailableFilesResponseFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.download.AvailableFilesResponse' });
        case 'org.sagebionetworks.repo.model.download.FilesStatisticsResponse':
            return Object.assign({}, FilesStatisticsResponseFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.download.FilesStatisticsResponse' });
        default:
            return json;
    }
}
export function QueryResponseDetailsToJSON(json) {
    return QueryResponseDetailsToJSONTyped(json, false);
}
export function QueryResponseDetailsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.download.ActionRequiredResponse':
            return Object.assign({}, ActionRequiredResponseToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.download.ActionRequiredResponse' });
        case 'org.sagebionetworks.repo.model.download.AvailableFilesResponse':
            return Object.assign({}, AvailableFilesResponseToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.download.AvailableFilesResponse' });
        case 'org.sagebionetworks.repo.model.download.FilesStatisticsResponse':
            return Object.assign({}, FilesStatisticsResponseToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.download.FilesStatisticsResponse' });
        default:
            return value;
    }
}
//# sourceMappingURL=QueryResponseDetails.js.map