Query$getPlayerById$getPlayerById$statistics.fromJson constructor
Query$getPlayerById$getPlayerById$statistics.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Query$getPlayerById$getPlayerById$statistics.fromJson(
Map<String, dynamic> json) {
final l$team = json['team'];
final l$league = json['league'];
final l$games = json['games'];
final l$substitutes = json['substitutes'];
final l$shots = json['shots'];
final l$goals = json['goals'];
final l$passes = json['passes'];
final l$tackles = json['tackles'];
final l$duels = json['duels'];
final l$dribbles = json['dribbles'];
final l$fouls = json['fouls'];
final l$cards = json['cards'];
final l$penalty = json['penalty'];
final l$$__typename = json['__typename'];
return Query$getPlayerById$getPlayerById$statistics(
team: l$team == null
? null
: Query$getPlayerById$getPlayerById$statistics$team.fromJson(
(l$team as Map<String, dynamic>)),
league: l$league == null
? null
: Query$getPlayerById$getPlayerById$statistics$league.fromJson(
(l$league as Map<String, dynamic>)),
games: l$games == null
? null
: Query$getPlayerById$getPlayerById$statistics$games.fromJson(
(l$games as Map<String, dynamic>)),
substitutes: l$substitutes == null
? null
: Query$getPlayerById$getPlayerById$statistics$substitutes.fromJson(
(l$substitutes as Map<String, dynamic>)),
shots: l$shots == null
? null
: Query$getPlayerById$getPlayerById$statistics$shots.fromJson(
(l$shots as Map<String, dynamic>)),
goals: l$goals == null
? null
: Query$getPlayerById$getPlayerById$statistics$goals.fromJson(
(l$goals as Map<String, dynamic>)),
passes: l$passes == null
? null
: Query$getPlayerById$getPlayerById$statistics$passes.fromJson(
(l$passes as Map<String, dynamic>)),
tackles: l$tackles == null
? null
: Query$getPlayerById$getPlayerById$statistics$tackles.fromJson(
(l$tackles as Map<String, dynamic>)),
duels: l$duels == null
? null
: Query$getPlayerById$getPlayerById$statistics$duels.fromJson(
(l$duels as Map<String, dynamic>)),
dribbles: l$dribbles == null
? null
: Query$getPlayerById$getPlayerById$statistics$dribbles.fromJson(
(l$dribbles as Map<String, dynamic>)),
fouls: l$fouls == null
? null
: Query$getPlayerById$getPlayerById$statistics$fouls.fromJson(
(l$fouls as Map<String, dynamic>)),
cards: l$cards == null
? null
: Query$getPlayerById$getPlayerById$statistics$cards.fromJson(
(l$cards as Map<String, dynamic>)),
penalty: l$penalty == null
? null
: Query$getPlayerById$getPlayerById$statistics$penalty.fromJson(
(l$penalty as Map<String, dynamic>)),
$__typename: (l$$__typename as String),
);
}