toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = this.id;
json[r'course_count'] = this.courseCount;
json[r'user_count'] = this.userCount;
json[r'total_points'] = this.totalPoints;
json[r'average_points'] = this.averagePoints;
if (this.name != null) {
json[r'name'] = this.name;
} else {
json[r'name'] = null;
}
return json;
}