toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'display_name'] = this.displayName;
json[r'id'] = this.id;
json[r'average'] = this.average;
if (this.attempts != null) {
json[r'attempts'] = this.attempts;
} else {
json[r'attempts'] = null;
}
return json;
}