import 'package:huixiang/generated/json/base/json_field.dart'; import 'package:huixiang/generated/json/page_list.g.dart'; import 'dart:convert'; export 'package:huixiang/generated/json/page_list.g.dart'; @JsonSerializable() class PageList { List? records = []; String? total = ''; String? size = ''; String? current = ''; List? orders = []; bool? hitCount = false; bool? searchCount = false; String? pages = ''; PageList(); factory PageList.fromJson(Map json) => $PageListFromJson(json); Map toJson() => $PageListToJson(this); @override String toString() { return jsonEncode(this); } } @JsonSerializable() class Orders { String? column = ''; bool? asc = false; Orders(); factory Orders.fromJson(Map json) => $OrdersFromJson(json); Map toJson() => $OrdersToJson(this); @override String toString() { return jsonEncode(this); } }