/* 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 { DownloadListFromJSON, DownloadListToJSON, } from './DownloadList';
/**
 * @export
 */
export const AddFileToDownloadListResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_AddFileToDownloadListResponse: 'org.sagebionetworks.repo.model.file.AddFileToDownloadListResponse'
};
/**
 * Check if a given object implements the AddFileToDownloadListResponse interface.
 */
export function instanceOfAddFileToDownloadListResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(AddFileToDownloadListResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function AddFileToDownloadListResponseFromJSON(json) {
    return AddFileToDownloadListResponseFromJSONTyped(json, false);
}
export function AddFileToDownloadListResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'downloadList': json['downloadList'] == null ? undefined : DownloadListFromJSON(json['downloadList']),
    };
}
export function AddFileToDownloadListResponseToJSON(json) {
    return AddFileToDownloadListResponseToJSONTyped(json, false);
}
export function AddFileToDownloadListResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'downloadList': DownloadListToJSON(value['downloadList']),
    };
}
//# sourceMappingURL=AddFileToDownloadListResponse.js.map