toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['id'] = this.id;
data['referee'] = this.referee;
data['timezone'] = this.timezone;
data['date'] = this.date;
data['timestamp'] = this.timestamp;
if (this.periods != null) {
data['periods'] = this.periods!.toJson();
}
if (this.venue != null) {
data['venue'] = this.venue!.toJson();
}
if (this.status != null) {
data['status'] = this.status!.toJson();
}
return data;
}