mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-17 22:14:28 +01:00
Merge commit 'e5d30a9f6d0854e20049309333c2f637cd03025c' as 'frontend'
This commit is contained in:
22
frontend/lib/models/pagination.dart
Normal file
22
frontend/lib/models/pagination.dart
Normal 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'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user