mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-01 07:39:47 +08:00
14 lines
309 B
Dart
14 lines
309 B
Dart
class Page {
|
|
int? pageNum;
|
|
int? pageSize;
|
|
int? total;
|
|
|
|
Page({this.pageNum, this.pageSize, 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?,
|
|
);
|
|
}
|