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, 'names') and self.names is not None:
              _dict['names'] = self.names
          return _dict