/* 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 { AsyncMigrationRequestFromJSONTyped, AsyncMigrationRequestToJSON, } from './AsyncMigrationRequest';
import { FileHandleArchivalRequestFromJSONTyped, FileHandleArchivalRequestToJSON, } from './FileHandleArchivalRequest';
export function AsynchronousAdminRequestBodyFromJSON(json) {
    return AsynchronousAdminRequestBodyFromJSONTyped(json, false);
}
export function AsynchronousAdminRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.file.FileHandleArchivalRequest':
            return Object.assign({}, FileHandleArchivalRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.file.FileHandleArchivalRequest' });
        case 'org.sagebionetworks.repo.model.migration.AsyncMigrationRequest':
            return Object.assign({}, AsyncMigrationRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.migration.AsyncMigrationRequest' });
        default:
            return json;
    }
}
export function AsynchronousAdminRequestBodyToJSON(json) {
    return AsynchronousAdminRequestBodyToJSONTyped(json, false);
}
export function AsynchronousAdminRequestBodyToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.file.FileHandleArchivalRequest':
            return Object.assign({}, FileHandleArchivalRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.file.FileHandleArchivalRequest' });
        case 'org.sagebionetworks.repo.model.migration.AsyncMigrationRequest':
            return Object.assign({}, AsyncMigrationRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.migration.AsyncMigrationRequest' });
        default:
            return value;
    }
}
//# sourceMappingURL=AsynchronousAdminRequestBody.js.map