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

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

        _obj = CreateDockerWorkerRegistryEntryRequest.parse_obj({
            "name": obj.get("name"),
            "worker_type": obj.get("workerType"),
            "labels": obj.get("labels"),
            "creator": obj.get("creator"),
            "docker_version": obj.get("dockerVersion")
        })
        return _obj
Create an instance of CreateDockerWorkerRegistryEntryRequest from a dict
lightly/openapi_generated/swagger_client/models/create_docker_worker_registry_entry_request.py