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

        if not isinstance(obj, dict):
            return ReportV2.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 ReportV2) in the input: " + str(obj))

        _obj = ReportV2.parse_obj({
            "general_information": GeneralInformation.from_dict(obj.get("generalInformation")) if obj.get("generalInformation") is not None else None,
            "dataset_analysis": DatasetAnalysis.from_dict(obj.get("datasetAnalysis")) if obj.get("datasetAnalysis") is not None else None,
            "prediction_task_information": dict(
                (_k, PredictionTaskInformation.from_dict(_v))
                for _k, _v in obj.get("predictionTaskInformation").items()
            )
            if obj.get("predictionTaskInformation") is not None
            else None
        })
        return _obj
Create an instance of ReportV2 from a dict
lightly/openapi_generated/swagger_client/models/report_v2.py