toJson method

Map<String, dynamic> toJson()

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;
  }
    json[r'problems'] = this.problems;
  return json;
}