Query$searchLeagues$searchLeagues$objects.fromJson constructor

Query$searchLeagues$searchLeagues$objects.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Query$searchLeagues$searchLeagues$objects.fromJson(
    Map<String, dynamic> json) {
  final l$id = json['id'];
  final l$league = json['league'];
  final l$country = json['country'];
  final l$seasons = json['seasons'];
  final l$$__typename = json['__typename'];
  return Query$searchLeagues$searchLeagues$objects(
    id: (l$id as String),
    league: l$league == null
        ? null
        : Query$searchLeagues$searchLeagues$objects$league.fromJson(
            (l$league as Map<String, dynamic>)),
    country: l$country == null
        ? null
        : Query$searchLeagues$searchLeagues$objects$country.fromJson(
            (l$country as Map<String, dynamic>)),
    seasons: (l$seasons as List<dynamic>?)
        ?.map((e) =>
            Query$searchLeagues$searchLeagues$objects$seasons.fromJson(
                (e as Map<String, dynamic>)))
        .toList(),
    $__typename: (l$$__typename as String),
  );
}