blob: cac391c928d89549481542c6e438a1a30eac9f8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
class Pagination {
final int totalItems;
final int totalPages;
final int currentPage;
final int pageSize;
Pagination({
required this.totalItems,
required this.totalPages,
required this.currentPage,
required this.pageSize,
});
factory Pagination.fromJson(Map<String, dynamic> json) {
return Pagination(
totalItems: json['total_items'],
totalPages: json['total_pages'],
currentPage: json['current_page'],
pageSize: json['page_size'],
);
}
}
|