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

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

        _obj = DetectionTaskInformation.parse_obj({
            "bbox_examples": [DetectionFramePrediction.from_dict(_item) for _item in obj.get("bboxExamples")] if obj.get("bboxExamples") is not None else None,
            "crop_embedding_information": EmbeddingInformation.from_dict(obj.get("cropEmbeddingInformation")) if obj.get("cropEmbeddingInformation") is not None else None
        })
        return _obj
Create an instance of DetectionTaskInformation from a dict
lightly/openapi_generated/swagger_client/models/detection_task_information.py