import 'package:json_annotation/json_annotation.dart'; part 'knowledge_report_detail.g.dart'; @JsonSerializable() class KnowledgeReportDetail extends Object { @JsonKey(name: 'homeworkId') String homeworkId; @JsonKey(name: 'homeworkName') String homeworkName; @JsonKey(name: 'publishTime') String publishTime; @JsonKey(name: 'templateId') int templateId; @JsonKey(name: 'questionNo') int questionNo; @JsonKey(name: 'questionType') int questionType; @JsonKey(name: 'questionPicture') String? questionPicture; @JsonKey(name: 'correctRate') int correctRate; KnowledgeReportDetail(this.homeworkId,this.homeworkName,this.publishTime,this.templateId,this.questionNo,this.questionType,this.correctRate,this.questionPicture); factory KnowledgeReportDetail.fromJson(Map srcJson) => _$KnowledgeReportDetailFromJson(srcJson); Map toJson() => _$KnowledgeReportDetailToJson(this); }