docs: def _to_dict(self):
          """Return a json dictionary representing this model."""
          _dict = {}
          if hasattr(self, 'name') and self.name is not None:
              _dict['name'] = self.name
          if hasattr(self, 'classifier_id') and self.classifier_id is not None:
              _dict['classifier_id'] = self.classifier_id
          if hasattr(self, 'classes') and self.classes is not None:
              _dict['classes'] = [x._to_dict() for x in self.classes]
          return _dict