mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-11 23:35:25 -05:00
Restructuring the Repo to make it clear the difference between classic autogpt and the autogpt platform: * Move the "classic" projects `autogpt`, `forge`, `frontend`, and `benchmark` into a `classic` folder * Also rename `autogpt` to `original_autogpt` for absolute clarity * Rename `rnd/` to `autogpt_platform/` * `rnd/autogpt_builder` -> `autogpt_platform/frontend` * `rnd/autogpt_server` -> `autogpt_platform/backend` * Adjust any paths accordingly
23 lines
505 B
Dart
23 lines
505 B
Dart
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'],
|
|
);
|
|
}
|
|
}
|