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.
 
 
 
 
 
 

45 lines
945 B

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<T> {
List<T>? records = [];
String? total = '';
String? size = '';
String? current = '';
List<Orders>? orders = [];
bool? hitCount = false;
bool? searchCount = false;
String? pages = '';
PageList();
factory PageList.fromJson(Map<String, dynamic> json) => $PageListFromJson(json);
Map<String, dynamic> toJson() => $PageListToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
class Orders {
String? column = '';
bool? asc = false;
Orders();
factory Orders.fromJson(Map<String, dynamic> json) => $OrdersFromJson(json);
Map<String, dynamic> toJson() => $OrdersToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}