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