fmk
3 years ago
20 changed files with 82 additions and 1309 deletions
@ -1,37 +0,0 @@ |
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
||||||
|
|
||||||
part of 'base_data.dart'; |
|
||||||
|
|
||||||
// ************************************************************************** |
|
||||||
// JsonSerializableGenerator |
|
||||||
// ************************************************************************** |
|
||||||
|
|
||||||
BaseData<T> _$BaseDataFromJson<T>( |
|
||||||
Map<String, dynamic> json, |
|
||||||
T Function(Object json) fromJsonT, |
|
||||||
) { |
|
||||||
return BaseData<T>() |
|
||||||
..code = json['code'] as int |
|
||||||
..data = fromJsonT(json['data']) |
|
||||||
..extra = json['extra'] |
|
||||||
..isError = json['isError'] as bool |
|
||||||
..isSuccess = json['isSuccess'] as bool |
|
||||||
..msg = json['msg'] as String |
|
||||||
..path = json['path'] as String |
|
||||||
..timestamp = json['timestamp'] as String; |
|
||||||
} |
|
||||||
|
|
||||||
Map<String, dynamic> _$BaseDataToJson<T>( |
|
||||||
BaseData<T> instance, |
|
||||||
Object Function(T value) toJsonT, |
|
||||||
) => |
|
||||||
<String, dynamic>{ |
|
||||||
'code': instance.code, |
|
||||||
'data': toJsonT(instance.data), |
|
||||||
'extra': instance.extra, |
|
||||||
'isError': instance.isError, |
|
||||||
'isSuccess': instance.isSuccess, |
|
||||||
'msg': instance.msg, |
|
||||||
'path': instance.path, |
|
||||||
'timestamp': instance.timestamp, |
|
||||||
}; |
|
@ -1,41 +0,0 @@ |
|||||||
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
||||||
|
|
||||||
part of 'page.dart'; |
|
||||||
|
|
||||||
// ************************************************************************** |
|
||||||
// JsonSerializableGenerator |
|
||||||
// ************************************************************************** |
|
||||||
|
|
||||||
PageInfo<D> _$PageInfoFromJson<D>( |
|
||||||
Map<String, dynamic> json, |
|
||||||
D Function(Object json) fromJsonD, |
|
||||||
) { |
|
||||||
return PageInfo<D>() |
|
||||||
..pageNum = json['pageNum'] as int |
|
||||||
..current = json['current'] |
|
||||||
..pageSize = json['pageSize'] as int |
|
||||||
..size = json['size'] |
|
||||||
..pages = json['pages'] |
|
||||||
..hasPreviousPage = json['hasPreviousPage'] as bool |
|
||||||
..hasNextPage = json['hasNextPage'] as bool |
|
||||||
..total = json['total'] as String |
|
||||||
..list = (json['list'] as List)?.map(fromJsonD)?.toList() |
|
||||||
..records = (json['records'] as List)?.map(fromJsonD)?.toList(); |
|
||||||
} |
|
||||||
|
|
||||||
Map<String, dynamic> _$PageInfoToJson<D>( |
|
||||||
PageInfo<D> instance, |
|
||||||
Object Function(D value) toJsonD, |
|
||||||
) => |
|
||||||
<String, dynamic>{ |
|
||||||
'pageNum': instance.pageNum, |
|
||||||
'current': instance.current, |
|
||||||
'pageSize': instance.pageSize, |
|
||||||
'size': instance.size, |
|
||||||
'pages': instance.pages, |
|
||||||
'hasPreviousPage': instance.hasPreviousPage, |
|
||||||
'hasNextPage': instance.hasNextPage, |
|
||||||
'total': instance.total, |
|
||||||
'list': instance.list?.map(toJsonD)?.toList(), |
|
||||||
'records': instance.records?.map(toJsonD)?.toList(), |
|
||||||
}; |
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue