new project stable version
This commit is contained in:
19
lib/domain/entities/pagination.dart
Normal file
19
lib/domain/entities/pagination.dart
Normal file
@@ -0,0 +1,19 @@
|
||||
class Pagination {
|
||||
final int total;
|
||||
final int currentPage;
|
||||
final int lastPage;
|
||||
|
||||
Pagination({
|
||||
required this.total,
|
||||
required this.currentPage,
|
||||
required this.lastPage,
|
||||
});
|
||||
|
||||
factory Pagination.fromJson(Map<String, dynamic> json) {
|
||||
return Pagination(
|
||||
total: json['total'] ?? 0,
|
||||
currentPage: json['currentPage'] ?? 0,
|
||||
lastPage: json['lastPage'] ?? 0,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user