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, 'msg') and self.msg is not None:
              _dict['msg'] = self.msg
          if hasattr(self, '_additionalProperties'):
              for _key in self._additionalProperties:
                  _value = getattr(self, _key, None)
                  if _value is not None:
                      _dict[_key] = _value
          return _dict