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

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

        _obj = VideoFrameData.parse_obj({
            "source_video": obj.get("sourceVideo"),
            "source_video_frame_index": obj.get("sourceVideoFrameIndex"),
            "source_video_frame_timestamp": obj.get("sourceVideoFrameTimestamp")
        })
        return _obj
Create an instance of VideoFrameData from a dict
lightly/openapi_generated/swagger_client/models/video_frame_data.py