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

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

        _obj = DockerWorkerConfigOmniV3CreateRequestAllOf.parse_obj({
            "config": DockerWorkerConfigV3.from_dict(obj.get("config")) if obj.get("config") is not None else None
        })
        return _obj
Create an instance of DockerWorkerConfigOmniV3CreateRequestAllOf from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_omni_v3_create_request_all_of.py