/* 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 { PartialRowSetFromJSONTyped, PartialRowSetToJSON, } from './PartialRowSet';
import { RowSetFromJSONTyped, RowSetToJSON, } from './RowSet';
export function AppendableRowSetFromJSON(json) {
    return AppendableRowSetFromJSONTyped(json, false);
}
export function AppendableRowSetFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    switch (json['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.PartialRowSet':
            return Object.assign({}, PartialRowSetFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.PartialRowSet' });
        case 'org.sagebionetworks.repo.model.table.RowSet':
            return Object.assign({}, RowSetFromJSONTyped(json, true), { concreteType: 'org.sagebionetworks.repo.model.table.RowSet' });
        default:
            return json;
    }
}
export function AppendableRowSetToJSON(json) {
    return AppendableRowSetToJSONTyped(json, false);
}
export function AppendableRowSetToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    switch (value['concreteType']) {
        case 'org.sagebionetworks.repo.model.table.PartialRowSet':
            return Object.assign({}, PartialRowSetToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.PartialRowSet' });
        case 'org.sagebionetworks.repo.model.table.RowSet':
            return Object.assign({}, RowSetToJSON(value), { concreteType: 'org.sagebionetworks.repo.model.table.RowSet' });
        default:
            return value;
    }
}
//# sourceMappingURL=AppendableRowSet.js.map