fix
This commit is contained in:
28
lib/domain/entities/pagination_meta.dart
Normal file
28
lib/domain/entities/pagination_meta.dart
Normal file
@@ -0,0 +1,28 @@
|
||||
class PaginationMeta {
|
||||
final int total;
|
||||
final int lastPage;
|
||||
final int currentPage;
|
||||
final int totalPerPage;
|
||||
final int? prevPage;
|
||||
final int? nextPage;
|
||||
|
||||
PaginationMeta({
|
||||
required this.total,
|
||||
required this.lastPage,
|
||||
required this.currentPage,
|
||||
required this.totalPerPage,
|
||||
this.prevPage,
|
||||
this.nextPage,
|
||||
});
|
||||
|
||||
factory PaginationMeta.fromJson(Map<String, dynamic> json) {
|
||||
return PaginationMeta(
|
||||
total: json['total'] as int,
|
||||
lastPage: json['lastPage'] as int,
|
||||
currentPage: json['currentPage'] as int,
|
||||
totalPerPage: json['totalPerPage'] as int,
|
||||
prevPage: json['prevPage'] as int?,
|
||||
nextPage: json['nextPage'] as int?,
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user