code: def to_dict(self):
          
          return dict(
              after=self._kwargs.get('after'),
              data=list(self),
              has_more=self._has_more,
              limit=self._max_results,
              order=self._kwargs.get('order', 'ASC'),
              page_size=self._page_size,
              total_count=self.count(),
          )
docs: Internal state