/* 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 UploadToTablePreviewRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_UploadToTablePreviewRequest: 'org.sagebionetworks.repo.model.table.UploadToTablePreviewRequest'
};
/**
 * Check if a given object implements the UploadToTablePreviewRequest interface.
 */
export function instanceOfUploadToTablePreviewRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(UploadToTablePreviewRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function UploadToTablePreviewRequestFromJSON(json) {
    return UploadToTablePreviewRequestFromJSONTyped(json, false);
}
export function UploadToTablePreviewRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'uploadFileHandleId': json['uploadFileHandleId'] == null ? undefined : json['uploadFileHandleId'],
        'linesToSkip': json['linesToSkip'] == null ? undefined : json['linesToSkip'],
        'csvTableDescriptor': json['csvTableDescriptor'] == null ? undefined : CsvTableDescriptorFromJSON(json['csvTableDescriptor']),
        'doFullFileScan': json['doFullFileScan'] == null ? undefined : json['doFullFileScan'],
    };
}
export function UploadToTablePreviewRequestToJSON(json) {
    return UploadToTablePreviewRequestToJSONTyped(json, false);
}
export function UploadToTablePreviewRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'uploadFileHandleId': value['uploadFileHandleId'],
        'linesToSkip': value['linesToSkip'],
        'csvTableDescriptor': CsvTableDescriptorToJSON(value['csvTableDescriptor']),
        'doFullFileScan': value['doFullFileScan'],
    };
}
//# sourceMappingURL=UploadToTablePreviewRequest.js.map