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

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

        _obj = DetectionFramePrediction.parse_obj({
            "filename": obj.get("filename"),
            "predictions": [ObjectDetectionPrediction.from_dict(_item) for _item in obj.get("predictions")] if obj.get("predictions") is not None else None
        })
        return _obj
Create an instance of DetectionFramePrediction from a dict
lightly/openapi_generated/swagger_client/models/detection_frame_prediction.py