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