docs: def _to_dict(self):
          """Return a json dictionary representing this model."""
          _dict = {}
          if hasattr(self, 'level') and self.level is not None:
              _dict['level'] = self.level
          if hasattr(self, 'message') and self.message is not None:
              _dict['message'] = self.message
          return _dict