Query$getPredictions$getPredictions$teams$home$league.fromJson constructor
Query$getPredictions$getPredictions$teams$home$league.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Query$getPredictions$getPredictions$teams$home$league.fromJson(
Map<String, dynamic> json) {
final l$form = json['form'];
final l$fixtures = json['fixtures'];
final l$goals = json['goals'];
final l$biggest = json['biggest'];
final l$clean_sheet = json['clean_sheet'];
final l$failed_to_score = json['failed_to_score'];
final l$penalty = json['penalty'];
final l$cards = json['cards'];
final l$$__typename = json['__typename'];
return Query$getPredictions$getPredictions$teams$home$league(
form: (l$form as String?),
fixtures: l$fixtures == null
? null
: Query$getPredictions$getPredictions$teams$home$league$fixtures
.fromJson((l$fixtures as Map<String, dynamic>)),
goals: l$goals == null
? null
: Query$getPredictions$getPredictions$teams$home$league$goals
.fromJson((l$goals as Map<String, dynamic>)),
biggest: l$biggest == null
? null
: Query$getPredictions$getPredictions$teams$home$league$biggest
.fromJson((l$biggest as Map<String, dynamic>)),
clean_sheet: l$clean_sheet == null
? null
: Query$getPredictions$getPredictions$teams$home$league$clean_sheet
.fromJson((l$clean_sheet as Map<String, dynamic>)),
failed_to_score: l$failed_to_score == null
? null
: Query$getPredictions$getPredictions$teams$home$league$failed_to_score
.fromJson((l$failed_to_score as Map<String, dynamic>)),
penalty: l$penalty == null
? null
: Query$getPredictions$getPredictions$teams$home$league$penalty
.fromJson((l$penalty as Map<String, dynamic>)),
cards: l$cards == null
? null
: Query$getPredictions$getPredictions$teams$home$league$cards
.fromJson((l$cards as Map<String, dynamic>)),
$__typename: (l$$__typename as String),
);
}