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

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

        _obj = DockerUserStats.parse_obj({
            "run_id": obj.get("runId"),
            "action": obj.get("action"),
            "data": obj.get("data"),
            "timestamp": obj.get("timestamp"),
            "pip_version": obj.get("pipVersion"),
            "docker_version": obj.get("dockerVersion")
        })
        return _obj
Create an instance of DockerUserStats from a dict
lightly/openapi_generated/swagger_client/models/docker_user_stats.py