Score.fromJson constructor

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

Implementation

Score.fromJson(Map<String, dynamic> json) {
  halftime =
      json['halftime'] != null ? new Goals.fromJson(json['halftime']) : null;
  fulltime =
      json['fulltime'] != null ? new Goals.fromJson(json['fulltime']) : null;
  extratime = json['extratime'] != null
      ? new Goals.fromJson(json['extratime'])
      : null;
  penalty =
      json['penalty'] != null ? new Penalty.fromJson(json['penalty']) : null;
}