SpeechRecognitionResult.fromJson constructor

SpeechRecognitionResult.fromJson(
  1. Map json_
)

Implementation

SpeechRecognitionResult.fromJson(core.Map json_)
    : this(
        alternatives: json_.containsKey('alternatives')
            ? (json_['alternatives'] as core.List)
                .map((value) => SpeechRecognitionAlternative.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        channelTag: json_.containsKey('channelTag')
            ? json_['channelTag'] as core.int
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        resultEndOffset: json_.containsKey('resultEndOffset')
            ? json_['resultEndOffset'] as core.String
            : null,
      );