docs: def _from_dict(cls, _dict):
          """Initialize a SpeechRecognitionResult object from a json dictionary."""
          args = {}
          if 'final' in _dict or 'final_results' in _dict:
              args['final_results'] = _dict.get('final') or _dict.get(
                  'final_results')
          else:
              raise ValueError(
                  'Required property \'final\' not present in SpeechRecognitionResult JSON'
              )
          if 'alternatives' in _dict:
              args['alternatives'] = [
                  SpeechRecognitionAlternative._from_dict(x)
                  for x in (_dict.get('alternatives'))
              ]
          else:
              raise ValueError(
                  'Required property \'alternatives\' not present in SpeechRecognitionResult JSON'
              )
          if 'keywords_result' in _dict:
              args['keywords_result'] = _dict.get('keywords_result')
          if 'word_alternatives' in _dict:
              args['word_alternatives'] = [
                  WordAlternativeResults._from_dict(x)
                  for x in (_dict.get('word_alternatives'))
              ]
          return cls(**args)