/* 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 { RowSetFromJSON, RowSetToJSON, } from './RowSet';
import { QueryNextPageTokenFromJSON, QueryNextPageTokenToJSON, } from './QueryNextPageToken';
/**
 * @export
 */
export const TableQueryResultConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_QueryResult: 'org.sagebionetworks.repo.model.table.QueryResult'
};
/**
 * Check if a given object implements the TableQueryResult interface.
 */
export function instanceOfTableQueryResult(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(TableQueryResultConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function TableQueryResultFromJSON(json) {
    return TableQueryResultFromJSONTyped(json, false);
}
export function TableQueryResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'queryResults': json['queryResults'] == null ? undefined : RowSetFromJSON(json['queryResults']),
        'nextPageToken': json['nextPageToken'] == null ? undefined : QueryNextPageTokenFromJSON(json['nextPageToken']),
    };
}
export function TableQueryResultToJSON(json) {
    return TableQueryResultToJSONTyped(json, false);
}
export function TableQueryResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'queryResults': RowSetToJSON(value['queryResults']),
        'nextPageToken': QueryNextPageTokenToJSON(value['nextPageToken']),
    };
}
//# sourceMappingURL=TableQueryResult.js.map