fmk
3 years ago
2 changed files with 1 additions and 38 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, |
||||
}; |
Loading…
Reference in new issue