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