SoccerMatch.fromJson constructor

SoccerMatch.fromJson(
  1. Map<String, dynamic> json
)

Implementation

SoccerMatch.fromJson(Map<String, dynamic> json) {
  fixture =
      json['fixture'] != null ? new Fixture.fromJson(json['fixture']) : null;
  league =
      json['league'] != null ? new League.fromJson(json['league']) : null;
  teams = json['teams'] != null ? new Teams.fromJson(json['teams']) : null;
  goals = json['goals'] != null ? new Goals.fromJson(json['goals']) : null;
  score = json['score'] != null ? new Score.fromJson(json['score']) : null;
}