/// 统计数据模型 class Stats { final int total; final Map byQuestionType; final Map byImportType; final Map byChapter; Stats({ this.total = 0, this.byQuestionType = const {}, this.byImportType = const {}, this.byChapter = const {}, }); factory Stats.fromJson(Map json) { return Stats( total: json['total'] ?? 0, byQuestionType: Map.from(json['by_question_type'] ?? {}), byImportType: Map.from(json['by_import_type'] ?? {}), byChapter: Map.from(json['by_chapter'] ?? {}), ); } }