/* 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';
/**
 * @export
 */
export const DownloadFromTableResultConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_DownloadFromTableResult: 'org.sagebionetworks.repo.model.table.DownloadFromTableResult'
};
/**
 * Check if a given object implements the DownloadFromTableResult interface.
 */
export function instanceOfDownloadFromTableResult(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DownloadFromTableResultConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DownloadFromTableResultFromJSON(json) {
    return DownloadFromTableResultFromJSONTyped(json, false);
}
export function DownloadFromTableResultFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'resultsFileHandleId': json['resultsFileHandleId'] == null ? undefined : json['resultsFileHandleId'],
        'tableId': json['tableId'] == null ? undefined : json['tableId'],
        'etag': json['etag'] == null ? undefined : json['etag'],
        'headers': json['headers'] == null ? undefined : (json['headers'].map(TableSelectColumnFromJSON)),
    };
}
export function DownloadFromTableResultToJSON(json) {
    return DownloadFromTableResultToJSONTyped(json, false);
}
export function DownloadFromTableResultToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'resultsFileHandleId': value['resultsFileHandleId'],
        'tableId': value['tableId'],
        'etag': value['etag'],
        'headers': value['headers'] == null ? undefined : (value['headers'].map(TableSelectColumnToJSON)),
    };
}
//# sourceMappingURL=DownloadFromTableResult.js.map