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

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

        _obj = DockerRunLogData.parse_obj({
            "cursor": obj.get("cursor") if obj.get("cursor") is not None else 0,
            "logs": [DockerRunLogEntryData.from_dict(_item) for _item in obj.get("logs")] if obj.get("logs") is not None else None
        })
        return _obj
Create an instance of DockerRunLogData from a dict
lightly/openapi_generated/swagger_client/models/docker_run_log_data.py