/* 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.
 */
/**
 * @export
 */
export const FilesStatisticsResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_download_FilesStatisticsResponse: 'org.sagebionetworks.repo.model.download.FilesStatisticsResponse'
};
/**
 * Check if a given object implements the FilesStatisticsResponse interface.
 */
export function instanceOfFilesStatisticsResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(FilesStatisticsResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function FilesStatisticsResponseFromJSON(json) {
    return FilesStatisticsResponseFromJSONTyped(json, false);
}
export function FilesStatisticsResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'concreteType': json['concreteType'],
        'totalNumberOfFiles': json['totalNumberOfFiles'] == null ? undefined : json['totalNumberOfFiles'],
        'numberOfFilesAvailableForDownload': json['numberOfFilesAvailableForDownload'] == null ? undefined : json['numberOfFilesAvailableForDownload'],
        'numberOfFilesAvailableForDownloadAndEligibleForPackaging': json['numberOfFilesAvailableForDownloadAndEligibleForPackaging'] == null ? undefined : json['numberOfFilesAvailableForDownloadAndEligibleForPackaging'],
        'numberOfFilesRequiringAction': json['numberOfFilesRequiringAction'] == null ? undefined : json['numberOfFilesRequiringAction'],
        'sumOfFileSizesAvailableForDownload': json['sumOfFileSizesAvailableForDownload'] == null ? undefined : json['sumOfFileSizesAvailableForDownload'],
    };
}
export function FilesStatisticsResponseToJSON(json) {
    return FilesStatisticsResponseToJSONTyped(json, false);
}
export function FilesStatisticsResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'concreteType': value['concreteType'],
        'totalNumberOfFiles': value['totalNumberOfFiles'],
        'numberOfFilesAvailableForDownload': value['numberOfFilesAvailableForDownload'],
        'numberOfFilesAvailableForDownloadAndEligibleForPackaging': value['numberOfFilesAvailableForDownloadAndEligibleForPackaging'],
        'numberOfFilesRequiringAction': value['numberOfFilesRequiringAction'],
        'sumOfFileSizesAvailableForDownload': value['sumOfFileSizesAvailableForDownload'],
    };
}
//# sourceMappingURL=FilesStatisticsResponse.js.map