code: def to_dict(self):
          
          return {
              'body': self._body,
              'method': self._method,
              'properties': self._properties,
              'channel': self._channel
          }
docs: Message to Dictionary.
  
          :rtype: dict