toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.endedAt != null) {
json[r'ended_at'] = this.endedAt!.toUtc().toIso8601String();
} else {
json[r'ended_at'] = null;
}
json[r'score'] = this.score;
if (this.startedAt != null) {
json[r'started_at'] = this.startedAt!.toUtc().toIso8601String();
} else {
json[r'started_at'] = null;
}
return json;
}