/* 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 { TableQueryFromJSON, TableQueryToJSON, } from './TableQuery';
/**
 * @export
 */
export const AddFileToDownloadListRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_AddFileToDownloadListRequest: 'org.sagebionetworks.repo.model.file.AddFileToDownloadListRequest'
};
/**
 * Check if a given object implements the AddFileToDownloadListRequest interface.
 */
export function instanceOfAddFileToDownloadListRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(AddFileToDownloadListRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function AddFileToDownloadListRequestFromJSON(json) {
    return AddFileToDownloadListRequestFromJSONTyped(json, false);
}
export function AddFileToDownloadListRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'folderId': json['folderId'] == null ? undefined : json['folderId'],
        'query': json['query'] == null ? undefined : TableQueryFromJSON(json['query']),
    };
}
export function AddFileToDownloadListRequestToJSON(json) {
    return AddFileToDownloadListRequestToJSONTyped(json, false);
}
export function AddFileToDownloadListRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'folderId': value['folderId'],
        'query': TableQueryToJSON(value['query']),
    };
}
//# sourceMappingURL=AddFileToDownloadListRequest.js.map