Merge commit 'e5d30a9f6d0854e20049309333c2f637cd03025c' as 'frontend'

This commit is contained in:
hunteraraujo
2023-09-06 11:22:37 -07:00
165 changed files with 7133 additions and 0 deletions

View File

@@ -0,0 +1,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'],
);
}
}