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 general_information
        if self.general_information:
            _dict['generalInformation' if by_alias else 'general_information'] = self.general_information.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of dataset_analysis
        if self.dataset_analysis:
            _dict['datasetAnalysis' if by_alias else 'dataset_analysis'] = self.dataset_analysis.to_dict(by_alias=by_alias)
        # override the default output from pydantic by calling `to_dict()` of each value in prediction_task_information (dict)
        _field_dict = {}
        if self.prediction_task_information:
            for _key in self.prediction_task_information:
                if self.prediction_task_information[_key]:
                    _field_dict[_key] = self.prediction_task_information[_key].to_dict(by_alias=by_alias)
            _dict['predictionTaskInformation' if by_alias else 'prediction_task_information'] = _field_dict
        return _dict
Returns the dictionary representation of the model
lightly/openapi_generated/swagger_client/models/report_v2.py