/* 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 { CsvTableDescriptorFromJSON, CsvTableDescriptorToJSON, } from './CsvTableDescriptor';
/**
 * @export
 */
export const DownloadFromGridRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_grid_DownloadFromGridRequest: 'org.sagebionetworks.repo.model.grid.DownloadFromGridRequest'
};
/**
 * Check if a given object implements the DownloadFromGridRequest interface.
 */
export function instanceOfDownloadFromGridRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(DownloadFromGridRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function DownloadFromGridRequestFromJSON(json) {
    return DownloadFromGridRequestFromJSONTyped(json, false);
}
export function DownloadFromGridRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'sessionId': json['sessionId'] == null ? undefined : json['sessionId'],
        'writeHeader': json['writeHeader'] == null ? undefined : json['writeHeader'],
        'includeRowIdAndRowVersion': json['includeRowIdAndRowVersion'] == null ? undefined : json['includeRowIdAndRowVersion'],
        'includeEtag': json['includeEtag'] == null ? undefined : json['includeEtag'],
        'csvTableDescriptor': json['csvTableDescriptor'] == null ? undefined : CsvTableDescriptorFromJSON(json['csvTableDescriptor']),
        'fileName': json['fileName'] == null ? undefined : json['fileName'],
    };
}
export function DownloadFromGridRequestToJSON(json) {
    return DownloadFromGridRequestToJSONTyped(json, false);
}
export function DownloadFromGridRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'sessionId': value['sessionId'],
        'writeHeader': value['writeHeader'],
        'includeRowIdAndRowVersion': value['includeRowIdAndRowVersion'],
        'includeEtag': value['includeEtag'],
        'csvTableDescriptor': CsvTableDescriptorToJSON(value['csvTableDescriptor']),
        'fileName': value['fileName'],
    };
}
//# sourceMappingURL=DownloadFromGridRequest.js.map