AnimeListPageInfo.fromJson constructor

AnimeListPageInfo.fromJson(
  1. Map<String, dynamic> map
)

Implementation

AnimeListPageInfo.fromJson(Map<String, dynamic> map)
    : pageNumber = map[CURRENT_PAGE],
      maxPageNumber = map[MAX_PAGE_NUMBER],
      animes = List.from(map[ANIME_ITEMS])
          .map<AnimeItem>((itemJson) => AnimeItem.fromJson(itemJson))
          .toList();