Query$getLeaguePagination$getLeaguePagination$objects.fromJson constructor

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

Implementation

factory Query$getLeaguePagination$getLeaguePagination$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$getLeaguePagination$getLeaguePagination$objects(
    id: (l$id as String),
    league: l$league == null
        ? null
        : Query$getLeaguePagination$getLeaguePagination$objects$league
            .fromJson((l$league as Map<String, dynamic>)),
    country: l$country == null
        ? null
        : Query$getLeaguePagination$getLeaguePagination$objects$country
            .fromJson((l$country as Map<String, dynamic>)),
    seasons: (l$seasons as List<dynamic>?)
        ?.map((e) =>
            Query$getLeaguePagination$getLeaguePagination$objects$seasons
                .fromJson((e as Map<String, dynamic>)))
        .toList(),
    $__typename: (l$$__typename as String),
  );
}