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