/* 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 { FileDownloadSummaryFromJSON, FileDownloadSummaryToJSON, } from './FileDownloadSummary';
/**
 * @export
 */
export const BulkFileDownloadResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_BulkFileDownloadResponse: 'org.sagebionetworks.repo.model.file.BulkFileDownloadResponse'
};
/**
 * Check if a given object implements the BulkFileDownloadResponse interface.
 */
export function instanceOfBulkFileDownloadResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(BulkFileDownloadResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function BulkFileDownloadResponseFromJSON(json) {
    return BulkFileDownloadResponseFromJSONTyped(json, false);
}
export function BulkFileDownloadResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'resultZipFileHandleId': json['resultZipFileHandleId'] == null ? undefined : json['resultZipFileHandleId'],
        'fileSummary': json['fileSummary'] == null ? undefined : (json['fileSummary'].map(FileDownloadSummaryFromJSON)),
        'userId': json['userId'] == null ? undefined : json['userId'],
    };
}
export function BulkFileDownloadResponseToJSON(json) {
    return BulkFileDownloadResponseToJSONTyped(json, false);
}
export function BulkFileDownloadResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'resultZipFileHandleId': value['resultZipFileHandleId'],
        'fileSummary': value['fileSummary'] == null ? undefined : (value['fileSummary'].map(FileDownloadSummaryToJSON)),
        'userId': value['userId'],
    };
}
//# sourceMappingURL=BulkFileDownloadResponse.js.map