/* 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 { AppendableRowSetRequestFromJSONTyped, AppendableRowSetRequestToJSON, } from './AppendableRowSetRequest';
import { TableSchemaChangeRequestFromJSONTyped, TableSchemaChangeRequestToJSON, } from './TableSchemaChangeRequest';
import { TableSearchChangeRequestFromJSONTyped, TableSearchChangeRequestToJSON, } from './TableSearchChangeRequest';
import { UploadToTableRequestFromJSONTyped, UploadToTableRequestToJSON, } from './UploadToTableRequest';
export function TableUpdateRequestFromJSON(json) {
    return TableUpdateRequestFromJSONTyped(json, false);
}
export function TableUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.AppendableRowSetRequest':
            return Object.assign({}, AppendableRowSetRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.AppendableRowSetRequest' });
        case 'org.sagebionetworks.repo.model.table.TableSchemaChangeRequest':
            return Object.assign({}, TableSchemaChangeRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.TableSchemaChangeRequest' });
        case 'org.sagebionetworks.repo.model.table.TableSearchChangeRequest':
            return Object.assign({}, TableSearchChangeRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.TableSearchChangeRequest' });
        case 'org.sagebionetworks.repo.model.table.UploadToTableRequest':
            return Object.assign({}, UploadToTableRequestFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.UploadToTableRequest' });
        default:
            return json;
    }
}
export function TableUpdateRequestToJSON(json) {
    return TableUpdateRequestToJSONTyped(json, false);
}
export function TableUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.AppendableRowSetRequest':
            return Object.assign({}, AppendableRowSetRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.AppendableRowSetRequest' });
        case 'org.sagebionetworks.repo.model.table.TableSchemaChangeRequest':
            return Object.assign({}, TableSchemaChangeRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.TableSchemaChangeRequest' });
        case 'org.sagebionetworks.repo.model.table.TableSearchChangeRequest':
            return Object.assign({}, TableSearchChangeRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.TableSearchChangeRequest' });
        case 'org.sagebionetworks.repo.model.table.UploadToTableRequest':
            return Object.assign({}, UploadToTableRequestToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.UploadToTableRequest' });
        default:
            return value;
    }
}
//# sourceMappingURL=TableUpdateRequest.js.map