/* 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 { TableRowFromJSON, TableRowToJSON, } from './TableRow';
import { TableSelectColumnFromJSON, TableSelectColumnToJSON, } from './TableSelectColumn';
/**
 * @export
 */
export const RowSetConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_RowSet: 'org.sagebionetworks.repo.model.table.RowSet'
};
/**
 * Check if a given object implements the RowSet interface.
 */
export function instanceOfRowSet(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(RowSetConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function RowSetFromJSON(json) {
    return RowSetFromJSONTyped(json, false);
}
export function RowSetFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'tableId': json['tableId'] == null ? undefined : json['tableId'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'headers': json['headers'] == null ? undefined : (json['headers'].map(TableSelectColumnFromJSON)),
        'rows': json['rows'] == null ? undefined : (json['rows'].map(TableRowFromJSON)),
    };
}
export function RowSetToJSON(json) {
    return RowSetToJSONTyped(json, false);
}
export function RowSetToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'tableId': value['tableId'],
        'etag': value['etag'],
        'headers': value['headers'] == null ? undefined : (value['headers'].map(TableSelectColumnToJSON)),
        'rows': value['rows'] == null ? undefined : (value['rows'].map(TableRowToJSON)),
    };
}
//# sourceMappingURL=RowSet.js.map