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.
37 lines
1.1 KiB
37 lines
1.1 KiB
// 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, |
|
};
|
|
|