/* 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 { TableSelectColumnFromJSON, TableSelectColumnToJSON, } from './TableSelectColumn';
import { FileHandleResultsFromJSON, FileHandleResultsToJSON, } from './FileHandleResults';
/**
 * Check if a given object implements the TableFileHandleResults interface.
 */
export function instanceOfTableFileHandleResults(value) {
    return true;
}
export function TableFileHandleResultsFromJSON(json) {
    return TableFileHandleResultsFromJSONTyped(json, false);
}
export function TableFileHandleResultsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'tableId': json['tableId'] == null ? undefined : json['tableId'],
        'headers': json['headers'] == null ? undefined : (json['headers'].map(TableSelectColumnFromJSON)),
        'rows': json['rows'] == null ? undefined : (json['rows'].map(FileHandleResultsFromJSON)),
    };
}
export function TableFileHandleResultsToJSON(json) {
    return TableFileHandleResultsToJSONTyped(json, false);
}
export function TableFileHandleResultsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'tableId': value['tableId'],
        'headers': value['headers'] == null ? undefined : (value['headers'].map(TableSelectColumnToJSON)),
        'rows': value['rows'] == null ? undefined : (value['rows'].map(FileHandleResultsToJSON)),
    };
}
//# sourceMappingURL=TableFileHandleResults.js.map