code: def to_dict(self):
          
          return {
              'hostname': self.hostname,
              'port': self.port,
              'transport': self.transport,
              'virtual_host': self.virtual_host
          }
docs: Return a dictionary of the broker stats.
  
          Returns:
              dict: Dictionary of the stats.