mod: ai conclusion page

This commit is contained in:
bggRGjQaUbCoE
2024-09-06 18:37:43 +08:00
parent 365d2bc643
commit ceb5b575e0
2 changed files with 21 additions and 16 deletions

View File

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