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.
 
 
 
 
 
 

48 lines
1.6 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'page_list.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
PageList<T> _$PageListFromJson<T>(
Map<String, dynamic> json,
T Function(Object? json) fromJsonT,
) =>
PageList<T>(
records: (json['records'] as List<dynamic>?)?.map(fromJsonT).toList(),
total: json['total'] as String?,
size: json['size'] as String?,
current: json['current'] as String?,
orders: (json['orders'] as List<dynamic>?)
?.map((e) => Orders.fromJson(e as Map<String, dynamic>))
.toList(),
hitCount: json['hitCount'] as bool?,
searchCount: json['searchCount'] as bool?,
pages: json['pages'] as String?,
);
Map<String, dynamic> _$PageListToJson<T>(
PageList<T> instance,
Object? Function(T value) toJsonT,
) =>
<String, dynamic>{
'records': instance.records?.map(toJsonT).toList(),
'total': instance.total,
'size': instance.size,
'current': instance.current,
'orders': instance.orders?.map((e) => e.toJson()).toList(),
'hitCount': instance.hitCount,
'searchCount': instance.searchCount,
'pages': instance.pages,
};
Orders _$OrdersFromJson(Map<String, dynamic> json) => Orders()
..column = json['column'] as String?
..asc = json['asc'] as bool?;
Map<String, dynamic> _$OrdersToJson(Orders instance) => <String, dynamic>{
'column': instance.column,
'asc': instance.asc,
};