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.
 
 
 
 
 
 

28 lines
581 B

import 'package:json_annotation/json_annotation.dart';
part 'page.g.dart';
@JsonSerializable(genericArgumentFactories: true)
class PageInfo<D> {
PageInfo();
int pageNum;
dynamic current;
int pageSize;
dynamic size;
dynamic pages;
bool hasPreviousPage;
bool hasNextPage;
String total;
List<D> list;
List<D> records;
factory PageInfo.fromJson(Map<String, dynamic> json, D Function(dynamic d) fromJsonD) => _$PageInfoFromJson(json, fromJsonD);
Map<String, dynamic> toJson(Object Function(D value) toJsonD) => _$PageInfoToJson(this, toJsonD);
}