/* 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 { QueryRowFromJSON, QueryRowToJSON, } from './QueryRow';
/**
 * Check if a given object implements the QueryTableResults interface.
 */
export function instanceOfQueryTableResults(value) {
    return true;
}
export function QueryTableResultsFromJSON(json) {
    return QueryTableResultsFromJSONTyped(json, false);
}
export function QueryTableResultsFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'headers': json['headers'] == null ? undefined : json['headers'],
        'rows': json['rows'] == null ? undefined : (json['rows'].map(QueryRowFromJSON)),
        'totalNumberOfResults': json['totalNumberOfResults'] == null ? undefined : json['totalNumberOfResults'],
    };
}
export function QueryTableResultsToJSON(json) {
    return QueryTableResultsToJSONTyped(json, false);
}
export function QueryTableResultsToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'headers': value['headers'],
        'rows': value['rows'] == null ? undefined : (value['rows'].map(QueryRowToJSON)),
        'totalNumberOfResults': value['totalNumberOfResults'],
    };
}
//# sourceMappingURL=QueryTableResults.js.map