fromMap static method
override
Construct from Map.
Implementation
static SpeechRecognitionResult? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'speechRecognitionResultError':
return SpeechRecognitionResultError.fromMap(_map);
case 'speechRecognitionResultText':
return SpeechRecognitionResultText.fromMap(_map);
case 'speechRecognitionResultPending':
return SpeechRecognitionResultPending.fromMap(_map);
case null:
default:
return null;
}
}