toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
if (this.fixture != null) {
data['fixture'] = this.fixture!.toJson();
}
if (this.league != null) {
data['league'] = this.league!.toJson();
}
if (this.teams != null) {
data['teams'] = this.teams!.toJson();
}
if (this.goals != null) {
data['goals'] = this.goals!.toJson();
}
if (this.score != null) {
data['score'] = this.score!.toJson();
}
return data;
}