code: def to_dict(self):
          
          return {"address": self.address,
                  "port": self.port,
                  "condition": self.condition,
                  "type": self.type,
                  "id": self.id,
                  }
docs: Convert this Node to a dict representation for passing to the API.