Query$getLeaguePagination$getLeaguePagination$objects$league.fromJson constructor

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

Implementation

factory Query$getLeaguePagination$getLeaguePagination$objects$league.fromJson(
    Map<String, dynamic> json) {
  final l$id = json['id'];
  final l$name = json['name'];
  final l$type = json['type'];
  final l$logo = json['logo'];
  final l$$__typename = json['__typename'];
  return Query$getLeaguePagination$getLeaguePagination$objects$league(
    id: (l$id as int),
    name: (l$name as String?),
    type: l$type == null
        ? null
        : fromJson$Enum$LeagueTypeEnum((l$type as String)),
    logo: (l$logo as String?),
    $__typename: (l$$__typename as String),
  );
}