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