115 lines
4.3 KiB
Dart
115 lines
4.3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'annotated_class.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
AnnotatedClass _$AnnotatedClassFromJson(Map<String, dynamic> json) =>
|
|
AnnotatedClass(
|
|
json['schoolName'] as String,
|
|
(json['grade'] as num).toInt(),
|
|
json['classId'] as String,
|
|
json['className'] as String,
|
|
json['finishTime'] as String?,
|
|
(json['questionCount'] as num).toInt(),
|
|
(json['answerCount'] as num).toInt(),
|
|
(json['answerRate'] as num).toInt(),
|
|
(json['unAnnotateCount'] as num).toInt(),
|
|
(json['annotateRate'] as num).toInt(),
|
|
(json['students'] as List<dynamic>)
|
|
.map((e) => AnnotatedStudents.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
(json['homeworkFavs'] as List<dynamic>)
|
|
.map((e) => HomeworkFavs.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
(json['kgtCorrectRate'] as num).toInt(),
|
|
(json['zgtCorrectRate'] as num).toInt(),
|
|
(json['correctRate'] as num).toInt(),
|
|
(json['commitStudentCount'] as num?)?.toInt(),
|
|
(json['noCommitStudentCount'] as num?)?.toInt(),
|
|
(json['commitStudent'] as List<dynamic>?)
|
|
?.map((e) => AnnotatedStudents.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
(json['noCommitStudent'] as List<dynamic>?)
|
|
?.map((e) => AnnotatedStudents.fromJson(e as Map<String, dynamic>))
|
|
.toList(),
|
|
);
|
|
|
|
Map<String, dynamic> _$AnnotatedClassToJson(AnnotatedClass instance) =>
|
|
<String, dynamic>{
|
|
'schoolName': instance.schoolName,
|
|
'grade': instance.grade,
|
|
'classId': instance.classId,
|
|
'className': instance.className,
|
|
'finishTime': instance.finishTime,
|
|
'questionCount': instance.questionCount,
|
|
'answerCount': instance.answerCount,
|
|
'answerRate': instance.answerRate,
|
|
'unAnnotateCount': instance.unAnnotateCount,
|
|
'annotateRate': instance.annotateRate,
|
|
'students': instance.students,
|
|
'homeworkFavs': instance.homeworkFavs,
|
|
'kgtCorrectRate': instance.kgtCorrectRate,
|
|
'zgtCorrectRate': instance.zgtCorrectRate,
|
|
'correctRate': instance.correctRate,
|
|
'commitStudentCount': instance.commitStudentCount,
|
|
'noCommitStudentCount': instance.noCommitStudentCount,
|
|
'commitStudent': instance.commitStudent,
|
|
'noCommitStudent': instance.noCommitStudent,
|
|
};
|
|
|
|
AnnotatedStudents _$AnnotatedStudentsFromJson(Map<String, dynamic> json) =>
|
|
AnnotatedStudents(
|
|
json['id'] as String?,
|
|
json['isDeleted'] as bool,
|
|
json['homeworkId'] as String?,
|
|
json['classId'] as String,
|
|
(json['studentId'] as num).toInt(),
|
|
json['studentName'] as String,
|
|
(json['state'] as num).toInt(),
|
|
);
|
|
|
|
Map<String, dynamic> _$AnnotatedStudentsToJson(AnnotatedStudents instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'isDeleted': instance.isDeleted,
|
|
'homeworkId': instance.homeworkId,
|
|
'classId': instance.classId,
|
|
'studentId': instance.studentId,
|
|
'studentName': instance.studentName,
|
|
'state': instance.state,
|
|
};
|
|
|
|
HomeworkFavs _$HomeworkFavsFromJson(Map<String, dynamic> json) => HomeworkFavs(
|
|
json['id'] as String,
|
|
json['homeworkId'] as String,
|
|
json['homeworkName'] as String,
|
|
(json['grade'] as num).toInt(),
|
|
(json['subject'] as num).toInt(),
|
|
json['classId'] as String,
|
|
json['className'] as String,
|
|
(json['studentId'] as num).toInt(),
|
|
json['studentName'] as String,
|
|
json['templateId'] as String,
|
|
(json['questionNo'] as num).toInt(),
|
|
json['subjectiveAnswer'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$HomeworkFavsToJson(HomeworkFavs instance) =>
|
|
<String, dynamic>{
|
|
'id': instance.id,
|
|
'homeworkId': instance.homeworkId,
|
|
'homeworkName': instance.homeworkName,
|
|
'grade': instance.grade,
|
|
'subject': instance.subject,
|
|
'classId': instance.classId,
|
|
'className': instance.className,
|
|
'studentId': instance.studentId,
|
|
'studentName': instance.studentName,
|
|
'templateId': instance.templateId,
|
|
'questionNo': instance.questionNo,
|
|
'subjectiveAnswer': instance.subjectiveAnswer,
|
|
};
|