mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-19 00:26:18 +08:00
17 lines
369 B
Dart
17 lines
369 B
Dart
class PageInfo {
|
|
int? curPageNum;
|
|
int? total;
|
|
|
|
PageInfo({this.curPageNum, this.total});
|
|
|
|
factory PageInfo.fromJson(Map<String, dynamic> json) => PageInfo(
|
|
curPageNum: json['cur_page_num'] as int?,
|
|
total: json['total'] as int?,
|
|
);
|
|
|
|
Map<String, dynamic> toJson() => {
|
|
'cur_page_num': curPageNum,
|
|
'total': total,
|
|
};
|
|
}
|