docs: def _to_dict(self):
          """Return a json dictionary representing this model."""
          _dict = {}
          if hasattr(self, 'log_messages') and self.log_messages is not None:
              _dict['log_messages'] = [x._to_dict() for x in self.log_messages]
          if hasattr(self, 'text') and self.text is not None:
              _dict['text'] = self.text
          if hasattr(self, 'generic') and self.generic is not None:
              _dict['generic'] = [x._to_dict() for x in self.generic]
          if hasattr(self, 'nodes_visited') and self.nodes_visited is not None:
              _dict['nodes_visited'] = self.nodes_visited
          if hasattr(self, 'nodes_visited_details'
                    ) and self.nodes_visited_details is not None:
              _dict['nodes_visited_details'] = [
                  x._to_dict() for x in self.nodes_visited_details
              ]
          if hasattr(self, '_additionalProperties'):
              for _key in self._additionalProperties:
                  _value = getattr(self, _key, None)
                  if _value is not None:
                      _dict[_key] = _value
          return _dict