Pagination.from(Map<String, dynamic> data) : count = data['paginationPageCount'] ?? 0, pageNums = List.from(data['paginationPageNums'] ?? []);