You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.1 KiB

class PageInfo {
PageInfo();
int pageNum;
dynamic current;
int pageSize;
dynamic size;
dynamic pages;
bool hasPreviousPage;
bool hasNextPage;
String total;
List<dynamic> list;
List<dynamic> records;
factory PageInfo.fromJson(Map<String, dynamic> json) =>
PageInfo()
..pageNum = json['pageNum'] as int
..current = json['current']
..pageSize = json['pageSize'] as int
..size = json['size']
..pages = json['pages']
..hasPreviousPage = json['hasPreviousPage'] as bool
..hasNextPage = json['hasNextPage'] as bool
..total = json['total'] as String
..list = json['list'] as List
..records = json['records'] as List;
Map<String, dynamic> toJson() => <String, dynamic>{
'pageNum': this.pageNum,
'current': this.current,
'pageSize': this.pageSize,
'size': this.size,
'pages': this.pages,
'hasPreviousPage': this.hasPreviousPage,
'hasNextPage': this.hasNextPage,
'total': this.total,
'list': this.list,
'records': this.records,
};
}