/* 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 AddToDownloadListRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_download_AddToDownloadListRequest: 'org.sagebionetworks.repo.model.download.AddToDownloadListRequest'
};
/**
 * Check if a given object implements the AddToDownloadListRequest interface.
 */
export function instanceOfAddToDownloadListRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(AddToDownloadListRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function AddToDownloadListRequestFromJSON(json) {
    return AddToDownloadListRequestFromJSONTyped(json, false);
}
export function AddToDownloadListRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'query': json['query'] == null ? undefined : TableQueryFromJSON(json['query']),
        'parentId': json['parentId'] == null ? undefined : json['parentId'],
        'recursive': json['recursive'] == null ? undefined : json['recursive'],
        'useVersionNumber': json['useVersionNumber'] == null ? undefined : json['useVersionNumber'],
    };
}
export function AddToDownloadListRequestToJSON(json) {
    return AddToDownloadListRequestToJSONTyped(json, false);
}
export function AddToDownloadListRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'query': TableQueryToJSON(value['query']),
        'parentId': value['parentId'],
        'recursive': value['recursive'],
        'useVersionNumber': value['useVersionNumber'],
    };
}
//# sourceMappingURL=AddToDownloadListRequest.js.map