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

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

        _obj = DockerWorkerConfigOmniV4CreateRequest.parse_obj({
            "version": obj.get("version"),
            "creator": obj.get("creator"),
            "config": DockerWorkerConfigV4.from_dict(obj.get("config")) if obj.get("config") is not None else None
        })
        return _obj
Create an instance of DockerWorkerConfigOmniV4CreateRequest from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_omni_v4_create_request.py