/* 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 { FileHandleAssociationFromJSON, FileHandleAssociationToJSON, } from './FileHandleAssociation';
/**
 * @export
 */
export const BulkFileDownloadRequestConcreteTypeEnum = {
    org_sagebionetworks_repo_model_file_BulkFileDownloadRequest: 'org.sagebionetworks.repo.model.file.BulkFileDownloadRequest'
};
/**
 * @export
 */
export const BulkFileDownloadRequestZipFileFormatEnum = {
    CommandLineCache: 'CommandLineCache',
    Flat: 'Flat'
};
/**
 * Check if a given object implements the BulkFileDownloadRequest interface.
 */
export function instanceOfBulkFileDownloadRequest(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(BulkFileDownloadRequestConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function BulkFileDownloadRequestFromJSON(json) {
    return BulkFileDownloadRequestFromJSONTyped(json, false);
}
export function BulkFileDownloadRequestFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'requestedFiles': json['requestedFiles'] == null ? undefined : (json['requestedFiles'].map(FileHandleAssociationFromJSON)),
        'zipFileName': json['zipFileName'] == null ? undefined : json['zipFileName'],
        'zipFileFormat': json['zipFileFormat'] == null ? undefined : json['zipFileFormat'],
    };
}
export function BulkFileDownloadRequestToJSON(json) {
    return BulkFileDownloadRequestToJSONTyped(json, false);
}
export function BulkFileDownloadRequestToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'requestedFiles': value['requestedFiles'] == null ? undefined : (value['requestedFiles'].map(FileHandleAssociationToJSON)),
        'zipFileName': value['zipFileName'],
        'zipFileFormat': value['zipFileFormat'],
    };
}
//# sourceMappingURL=BulkFileDownloadRequest.js.map