/* 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 { ActionRequiredRequestFromJSONTyped, ActionRequiredRequestToJSON, } from './ActionRequiredRequest';
import { AvailableFilesRequestFromJSONTyped, AvailableFilesRequestToJSON, } from './AvailableFilesRequest';
import { FilesStatisticsRequestFromJSONTyped, FilesStatisticsRequestToJSON, } from './FilesStatisticsRequest';
export function QueryRequestDetailsFromJSON(json) {
    return QueryRequestDetailsFromJSONTyped(json, false);
}
export function QueryRequestDetailsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.download.ActionRequiredRequest':
            return Object.assign({}, ActionRequiredRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.download.ActionRequiredRequest' });
        case 'org.sagebionetworks.repo.model.download.AvailableFilesRequest':
            return Object.assign({}, AvailableFilesRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.download.AvailableFilesRequest' });
        case 'org.sagebionetworks.repo.model.download.FilesStatisticsRequest':
            return Object.assign({}, FilesStatisticsRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.download.FilesStatisticsRequest' });
        default:
            return json;
    }
}
export function QueryRequestDetailsToJSON(json) {
    return QueryRequestDetailsToJSONTyped(json, false);
}
export function QueryRequestDetailsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.download.ActionRequiredRequest':
            return Object.assign({}, ActionRequiredRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.download.ActionRequiredRequest' });
        case 'org.sagebionetworks.repo.model.download.AvailableFilesRequest':
            return Object.assign({}, AvailableFilesRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.download.AvailableFilesRequest' });
        case 'org.sagebionetworks.repo.model.download.FilesStatisticsRequest':
            return Object.assign({}, FilesStatisticsRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.download.FilesStatisticsRequest' });
        default:
            return value;
    }
}
//# sourceMappingURL=QueryRequestDetails.js.map