SpeechRecognitionAlternative.fromJson constructor
SpeechRecognitionAlternative.fromJson(
- Map json_
Implementation
SpeechRecognitionAlternative.fromJson(core.Map json_)
: this(
confidence: json_.containsKey('confidence')
? (json_['confidence'] as core.num).toDouble()
: null,
transcript: json_.containsKey('transcript')
? json_['transcript'] as core.String
: null,
words: json_.containsKey('words')
? (json_['words'] as core.List)
.map((value) => WordInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);