/* 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 { EntityUpdateResultsFromJSONTyped, EntityUpdateResultsToJSON, } from './EntityUpdateResults';
import { RowReferenceSetResultsFromJSONTyped, RowReferenceSetResultsToJSON, } from './RowReferenceSetResults';
import { TableSchemaChangeResponseFromJSONTyped, TableSchemaChangeResponseToJSON, } from './TableSchemaChangeResponse';
import { TableSearchChangeResponseFromJSONTyped, TableSearchChangeResponseToJSON, } from './TableSearchChangeResponse';
import { UploadToTableResultFromJSONTyped, UploadToTableResultToJSON, } from './UploadToTableResult';
export function TableUpdateResponseFromJSON(json) {
    return TableUpdateResponseFromJSONTyped(json, false);
}
export function TableUpdateResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.EntityUpdateResults':
            return Object.assign({}, EntityUpdateResultsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.EntityUpdateResults' });
        case 'org.sagebionetworks.repo.model.table.RowReferenceSetResults':
            return Object.assign({}, RowReferenceSetResultsFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.RowReferenceSetResults' });
        case 'org.sagebionetworks.repo.model.table.TableSchemaChangeResponse':
            return Object.assign({}, TableSchemaChangeResponseFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.TableSchemaChangeResponse' });
        case 'org.sagebionetworks.repo.model.table.TableSearchChangeResponse':
            return Object.assign({}, TableSearchChangeResponseFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.TableSearchChangeResponse' });
        case 'org.sagebionetworks.repo.model.table.UploadToTableResult':
            return Object.assign({}, UploadToTableResultFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.UploadToTableResult' });
        default:
            return json;
    }
}
export function TableUpdateResponseToJSON(json) {
    return TableUpdateResponseToJSONTyped(json, false);
}
export function TableUpdateResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.EntityUpdateResults':
            return Object.assign({}, EntityUpdateResultsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.EntityUpdateResults' });
        case 'org.sagebionetworks.repo.model.table.RowReferenceSetResults':
            return Object.assign({}, RowReferenceSetResultsToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.RowReferenceSetResults' });
        case 'org.sagebionetworks.repo.model.table.TableSchemaChangeResponse':
            return Object.assign({}, TableSchemaChangeResponseToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.TableSchemaChangeResponse' });
        case 'org.sagebionetworks.repo.model.table.TableSearchChangeResponse':
            return Object.assign({}, TableSearchChangeResponseToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.TableSearchChangeResponse' });
        case 'org.sagebionetworks.repo.model.table.UploadToTableResult':
            return Object.assign({}, UploadToTableResultToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.UploadToTableResult' });
        default:
            return value;
    }
}
//# sourceMappingURL=TableUpdateResponse.js.map