Fixture.fromJson constructor

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

Implementation

Fixture.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  referee = json['referee'];
  timezone = json['timezone'];
  date = json['date'];
  timestamp = json['timestamp'];
  periods =
      json['periods'] != null ? new Periods.fromJson(json['periods']) : null;
  venue = json['venue'] != null ? new Venue.fromJson(json['venue']) : null;
  status =
      json['status'] != null ? new Status.fromJson(json['status']) : null;
}