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

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

        _obj = DockerRunData.parse_obj({
            "id": obj.get("id"),
            "user_id": obj.get("userId"),
            "docker_version": obj.get("dockerVersion"),
            "state": obj.get("state"),
            "archived": obj.get("archived"),
            "dataset_id": obj.get("datasetId"),
            "config_id": obj.get("configId"),
            "scheduled_id": obj.get("scheduledId"),
            "created_at": obj.get("createdAt"),
            "last_modified_at": obj.get("lastModifiedAt"),
            "message": obj.get("message"),
            "artifacts": [DockerRunArtifactData.from_dict(_item) for _item in obj.get("artifacts")] if obj.get("artifacts") is not None else None
        })
        return _obj
Create an instance of DockerRunData from a dict
lightly/openapi_generated/swagger_client/models/docker_run_data.py