def from_dict(cls, obj: dict) -> PredictionTaskInformation:
        """Create an instance of PredictionTaskInformation from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return PredictionTaskInformation.parse_obj(obj)

        # raise errors for additional fields in the input
        for _key in obj.keys():
            if _key not in cls.__properties:
                raise ValueError("Error due to additional fields (not defined in PredictionTaskInformation) in the input: " + str(obj))

        _obj = PredictionTaskInformation.parse_obj({
            "task_type": obj.get("taskType"),
            "category_id_to_name": obj.get("categoryIdToName"),
            "active_learning_score_distributions": dict(
                (_k, NumericDistributionPerSet.from_dict(_v))
                for _k, _v in obj.get("activeLearningScoreDistributions").items()
            )
            if obj.get("activeLearningScoreDistributions") is not None
            else None,
            "category_distribution": CategoricalDistributionPerSet.from_dict(obj.get("categoryDistribution")) if obj.get("categoryDistribution") is not None else None,
            "category_to_counts_per_sample": dict(
                (_k, NumericDistributionPerSet.from_dict(_v))
                for _k, _v in obj.get("categoryToCountsPerSample").items()
            )
            if obj.get("categoryToCountsPerSample") is not None
            else None,
            "prediction_score_distribution": NumericDistributionPerSet.from_dict(obj.get("predictionScoreDistribution")) if obj.get("predictionScoreDistribution") is not None else None,
            "detection_task_information": DetectionTaskInformation.from_dict(obj.get("detectionTaskInformation")) if obj.get("detectionTaskInformation") is not None else None,
            "category_to_image_with_category_count": CategoricalDistributionPerSet.from_dict(obj.get("categoryToImageWithCategoryCount")) if obj.get("categoryToImageWithCategoryCount") is not None else None
        })
        return _obj
Create an instance of PredictionTaskInformation from a dict
lightly/openapi_generated/swagger_client/models/prediction_task_information.py