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