fix: 视频总结

This commit is contained in:
guozhigq
2024-09-30 11:23:40 +08:00
parent a2e219f56f
commit 3d5f5597cd
3 changed files with 17 additions and 14 deletions

View File

@ -39,11 +39,11 @@ class ModelResult {
ModelResult.fromJson(Map<String, dynamic> json) {
resultType = json['result_type'];
summary = json['summary'];
outline = json['result_type'] == 2
? json['outline']
outline = json['result_type'] == 0
? <OutlineItem>[]
: json['outline']
.map<OutlineItem>((e) => OutlineItem.fromJson(e))
.toList()
: <OutlineItem>[];
.toList();
}
}