code: def _asdict(self):
      
      with self._cond:
        if self._prompt is None:
          return
        return {'id': self._prompt.id,
                'message': self._prompt.message,
                'text-input': self._prompt.text_input}
docs: Return a dictionary representation of the current prompt.