/* 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 { MonthlyFilesStatisticsFromJSON, MonthlyFilesStatisticsToJSON, } from './MonthlyFilesStatistics';
/**
 * @export
 */
export const ProjectFilesStatisticsResponseConcreteTypeEnum = {
    org_sagebionetworks_repo_model_statistics_ProjectFilesStatisticsResponse: 'org.sagebionetworks.repo.model.statistics.ProjectFilesStatisticsResponse'
};
/**
 * Check if a given object implements the ProjectFilesStatisticsResponse interface.
 */
export function instanceOfProjectFilesStatisticsResponse(value) {
    if (!('concreteType' in value) || value['concreteType'] === undefined)
        return false;
    if (!Object.values(ProjectFilesStatisticsResponseConcreteTypeEnum).includes(value["concreteType"])) {
        return false;
    }
    return true;
}
export function ProjectFilesStatisticsResponseFromJSON(json) {
    return ProjectFilesStatisticsResponseFromJSONTyped(json, false);
}
export function ProjectFilesStatisticsResponseFromJSONTyped(json, ignoreDiscriminator) {
    if (json == null) {
        return json;
    }
    return {
        'objectId': json['objectId'] == null ? undefined : json['objectId'],
        'concreteType': json['concreteType'],
        'fileDownloads': json['fileDownloads'] == null ? undefined : MonthlyFilesStatisticsFromJSON(json['fileDownloads']),
        'fileUploads': json['fileUploads'] == null ? undefined : MonthlyFilesStatisticsFromJSON(json['fileUploads']),
    };
}
export function ProjectFilesStatisticsResponseToJSON(json) {
    return ProjectFilesStatisticsResponseToJSONTyped(json, false);
}
export function ProjectFilesStatisticsResponseToJSONTyped(value, ignoreDiscriminator = false) {
    if (value == null) {
        return value;
    }
    return {
        'objectId': value['objectId'],
        'concreteType': value['concreteType'],
        'fileDownloads': MonthlyFilesStatisticsToJSON(value['fileDownloads']),
        'fileUploads': MonthlyFilesStatisticsToJSON(value['fileUploads']),
    };
}
//# sourceMappingURL=ProjectFilesStatisticsResponse.js.map