code: def set(self, values):
          
          if hasattr(self, "inputs"):
              for item in self.inputs:
                  if hasattr(self, item):
                      setattr(self, item, values[item])
docs: Set the object parameters using a dictionary