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.
 
 
 
 
 
 

31 lines
588 B

import 'package:json_annotation/json_annotation.dart';
/// pageNum : 1
/// pageSize : 10
/// size : 0
/// pages : 0
/// hasPreviousPage : false
/// hasNextPage : false
/// total : "0"
/// list : []
part 'page.g.dart';
@JsonSerializable()
class PageInfo {
PageInfo();
int pageNum;
int pageSize;
int size;
int pages;
bool hasPreviousPage;
bool hasNextPage;
String total;
List<dynamic> list;
List<dynamic> records;
factory PageInfo.fromJson(Map<String, dynamic> json) =>
_$PageInfoFromJson(json);
Map<String, dynamic> toJson() => _$PageInfoToJson(this);
}