Query$getPredictions$getPredictions$h2h$fixture.fromJson constructor
Query$getPredictions$getPredictions$h2h$fixture.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Query$getPredictions$getPredictions$h2h$fixture.fromJson(
Map<String, dynamic> json) {
final l$id = json['id'];
final l$referee = json['referee'];
final l$timezone = json['timezone'];
final l$date = json['date'];
final l$timestamp = json['timestamp'];
final l$periods = json['periods'];
final l$venue = json['venue'];
final l$status = json['status'];
final l$$__typename = json['__typename'];
return Query$getPredictions$getPredictions$h2h$fixture(
id: (l$id as num?)?.toDouble(),
referee: (l$referee as String?),
timezone: (l$timezone as String?),
date: l$date == null ? null : dateTimeFromJson(l$date),
timestamp: (l$timestamp as num?)?.toDouble(),
periods: l$periods == null
? null
: Query$getPredictions$getPredictions$h2h$fixture$periods.fromJson(
(l$periods as Map<String, dynamic>)),
venue: l$venue == null
? null
: Query$getPredictions$getPredictions$h2h$fixture$venue.fromJson(
(l$venue as Map<String, dynamic>)),
status: l$status == null
? null
: Query$getPredictions$getPredictions$h2h$fixture$status.fromJson(
(l$status as Map<String, dynamic>)),
$__typename: (l$$__typename as String),
);
}