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 list; factory PageInfo.fromJson(Map json) => _$PageInfoFromJson(json); Map toJson() => _$PageInfoToJson(this); }