mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
@@ -1,13 +1,9 @@
|
||||
class Page {
|
||||
int? pageNum;
|
||||
int? pageSize;
|
||||
int? total;
|
||||
|
||||
Page({this.pageNum, this.pageSize, this.total});
|
||||
Page({this.total});
|
||||
|
||||
factory Page.fromJson(Map<String, dynamic> json) => Page(
|
||||
pageNum: json['page_num'] ?? json['num'],
|
||||
pageSize: json['page_size'] ?? json['size'],
|
||||
total: json['total'] as int?,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user