/* 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 { ResultRowFromJSON, ResultRowToJSON, } from './ResultRow';
import { ResultSelectColumnFromJSON, ResultSelectColumnToJSON, } from './ResultSelectColumn';
/**
 * Check if a given object implements the ResultQueryResult interface.
 */
export function instanceOfResultQueryResult(value) {
    return true;
}
export function ResultQueryResultFromJSON(json) {
    return ResultQueryResultFromJSONTyped(json, false);
}
export function ResultQueryResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'selectColumns': json['selectColumns'] == null ? undefined : (json['selectColumns'].map(ResultSelectColumnFromJSON)),
        'rows': json['rows'] == null ? undefined : (json['rows'].map(ResultRowFromJSON)),
    };
}
export function ResultQueryResultToJSON(json) {
    return ResultQueryResultToJSONTyped(json, false);
}
export function ResultQueryResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'selectColumns': value['selectColumns'] == null ? undefined : (value['selectColumns'].map(ResultSelectColumnToJSON)),
        'rows': value['rows'] == null ? undefined : (value['rows'].map(ResultRowToJSON)),
    };
}
//# sourceMappingURL=ResultQueryResult.js.map