fix for JSON datatype error
This commit is contained in:
parent
bc47e84de2
commit
b26d786d95
1 changed files with 2 additions and 2 deletions
|
|
@ -148,7 +148,7 @@ class STTToken {
|
|||
class Transcript {
|
||||
final String text;
|
||||
final int confidence;
|
||||
final double? wordsPerMinute;
|
||||
final int wordsPerMinute;
|
||||
final List<STTToken> sttTokens;
|
||||
final String langCode;
|
||||
|
||||
|
|
@ -169,7 +169,7 @@ class Transcript {
|
|||
.map((e) => STTToken.fromJson(e))
|
||||
.toList(),
|
||||
langCode: json['lang_code'],
|
||||
wordsPerMinute: json['words_per_minute'],
|
||||
wordsPerMinute: json['words_per_minute'].round(),
|
||||
);
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue