toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['beginTime'] = this.beginTime;
data['endTime'] = this.endTime;
if (this.scores != null) {
data['scores'] = this.scores!.toJson();
}
data['word'] = this.word;
return data;
}