You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
Dart
42 lines
1.3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'speech_recognition_result.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
SpeechRecognitionResult _$SpeechRecognitionResultFromJson(
|
|
Map<String, dynamic> json) {
|
|
return SpeechRecognitionResult(
|
|
(json['alternates'] as List)
|
|
?.map((e) => e == null
|
|
? null
|
|
: SpeechRecognitionWords.fromJson(e as Map<String, dynamic>))
|
|
?.toList(),
|
|
json['finalResult'] as bool,
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$SpeechRecognitionResultToJson(
|
|
SpeechRecognitionResult instance) =>
|
|
<String, dynamic>{
|
|
'alternates': instance.alternates?.map((e) => e?.toJson())?.toList(),
|
|
'finalResult': instance.finalResult,
|
|
};
|
|
|
|
SpeechRecognitionWords _$SpeechRecognitionWordsFromJson(
|
|
Map<String, dynamic> json) {
|
|
return SpeechRecognitionWords(
|
|
json['recognizedWords'] as String,
|
|
(json['confidence'] as num)?.toDouble(),
|
|
);
|
|
}
|
|
|
|
Map<String, dynamic> _$SpeechRecognitionWordsToJson(
|
|
SpeechRecognitionWords instance) =>
|
|
<String, dynamic>{
|
|
'recognizedWords': instance.recognizedWords,
|
|
'confidence': instance.confidence,
|
|
};
|