def to_dict(self, by_alias: bool = False):
        """Returns the dictionary representation of the model"""
        _dict = self.dict(by_alias=by_alias,
                          exclude={
                          },
                          exclude_none=True)
        # override the default output from pydantic by calling `to_dict()` of each value in active_learning_score_distributions (dict)
        _field_dict = {}
        if self.active_learning_score_distributions:
            for _key in self.active_learning_score_distributions:
                if self.active_learning_score_distributions[_key]:
                    _field_dict[_key] = self.active_learning_score_distributions[_key].to_dict(by_alias=by_alias)
            _dict['activeLearningScoreDistributions' if by_alias else 'active_learning_score_distributions'] = _field_dict
        # override the default output from pydantic by calling `to_dict()` of category_distribution
        if self.category_distribution:
            _dict['categoryDistribution' if by_alias else 'category_distribution'] = self.category_distribution.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of each value in category_to_counts_per_sample (dict)
        _field_dict = {}
        if self.category_to_counts_per_sample:
            for _key in self.category_to_counts_per_sample:
                if self.category_to_counts_per_sample[_key]:
                    _field_dict[_key] = self.category_to_counts_per_sample[_key].to_dict(by_alias=by_alias)
            _dict['categoryToCountsPerSample' if by_alias else 'category_to_counts_per_sample'] = _field_dict
        # override the default output from pydantic by calling `to_dict()` of prediction_score_distribution
        if self.prediction_score_distribution:
            _dict['predictionScoreDistribution' if by_alias else 'prediction_score_distribution'] = self.prediction_score_distribution.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of detection_task_information
        if self.detection_task_information:
            _dict['detectionTaskInformation' if by_alias else 'detection_task_information'] = self.detection_task_information.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of category_to_image_with_category_count
        if self.category_to_image_with_category_count:
            _dict['categoryToImageWithCategoryCount' if by_alias else 'category_to_image_with_category_count'] = self.category_to_image_with_category_count.to_dict(by_alias=by_alias)
        return _dict
Returns the dictionary representation of the model
lightly/openapi_generated/swagger_client/models/prediction_task_information.py