toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.student != null) {
json[r'student'] = this.student;
} else {
json[r'student'] = null;
}
if (this.level != null) {
json[r'level'] = this.level;
} else {
json[r'level'] = null;
}
if (this.points != null) {
json[r'points'] = this.points;
} else {
json[r'points'] = null;
}
if (this.correctQuestionsForLevel != null) {
json[r'correct_questions_for_level'] = this.correctQuestionsForLevel;
} else {
json[r'correct_questions_for_level'] = null;
}
if (this.noIncorrectQuestionsForLevel != null) {
json[r'no_incorrect_questions_for_level'] = this.noIncorrectQuestionsForLevel;
} else {
json[r'no_incorrect_questions_for_level'] = null;
}
if (this.createdAt != null) {
json[r'created_at'] = this.createdAt!.toUtc().toIso8601String();
} else {
json[r'created_at'] = null;
}
if (this.updatedAt != null) {
json[r'updated_at'] = this.updatedAt!.toUtc().toIso8601String();
} else {
json[r'updated_at'] = null;
}
if (this.acquiredSkills != null) {
json[r'acquired_skills'] = this.acquiredSkills;
} else {
json[r'acquired_skills'] = null;
}
return json;
}