/* 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 UploadToTableRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_table_UploadToTableRequest: 'org.sagebionetworks.repo.model.table.UploadToTableRequest'
};
/**
 * Check if a given object implements the UploadToTableRequest interface.
 */
export function instanceOfUploadToTableRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(UploadToTableRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function UploadToTableRequestFromJSON(json) {
    return UploadToTableRequestFromJSONTyped(json, false);
}
export function UploadToTableRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'entityId': json['entityId'] == null ? undefined : json['entityId'],
        'tableId': json['tableId'] == null ? undefined : json['tableId'],
        'uploadFileHandleId': json['uploadFileHandleId'] == null ? undefined : json['uploadFileHandleId'],
        'updateEtag': json['updateEtag'] == null ? undefined : json['updateEtag'],
        'linesToSkip': json['linesToSkip'] == null ? undefined : json['linesToSkip'],
        'csvTableDescriptor': json['csvTableDescriptor'] == null ? undefined : CsvTableDescriptorFromJSON(json['csvTableDescriptor']),
        'columnIds': json['columnIds'] == null ? undefined : json['columnIds'],
    };
}
export function UploadToTableRequestToJSON(json) {
    return UploadToTableRequestToJSONTyped(json, false);
}
export function UploadToTableRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'entityId': value['entityId'],
        'tableId': value['tableId'],
        'uploadFileHandleId': value['uploadFileHandleId'],
        'updateEtag': value['updateEtag'],
        'linesToSkip': value['linesToSkip'],
        'csvTableDescriptor': CsvTableDescriptorToJSON(value['csvTableDescriptor']),
        'columnIds': value['columnIds'],
    };
}
//# sourceMappingURL=UploadToTableRequest.js.map