import 'package:json_annotation/json_annotation.dart'; part 'page_map.g.dart'; @JsonSerializable(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) => _$PageInfoFromJson(json); Map toJson() => _$PageInfoToJson(this); }