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
563 B

4 years ago
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();
4 years ago
int pageNum;
int pageSize;
int size;
int pages;
bool hasPreviousPage;
bool hasNextPage;
String total;
List<dynamic> list;
4 years ago
factory PageInfo.fromJson(Map<String, dynamic> json) =>
_$PageInfoFromJson(json);
Map<String, dynamic> toJson() => _$PageInfoToJson(this);
}