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.4 KiB
48 lines
1.4 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, |
|
) => |
|
BaseData<T>( |
|
code: (json['code'] as num?)?.toInt(), |
|
data: _$nullableGenericFromJson(json['data'], fromJsonT), |
|
extra: json['extra'], |
|
isSuccess: json['isSuccess'] as bool?, |
|
msg: json['msg'] as String?, |
|
path: json['path'] as String?, |
|
timestamp: json['timestamp'] as String?, |
|
)..isError = json['isError'] as bool?; |
|
|
|
Map<String, dynamic> _$BaseDataToJson<T>( |
|
BaseData<T> instance, |
|
Object? Function(T value) toJsonT, |
|
) => |
|
<String, dynamic>{ |
|
'code': instance.code, |
|
'data': _$nullableGenericToJson(instance.data, toJsonT), |
|
'extra': instance.extra, |
|
'isError': instance.isError, |
|
'isSuccess': instance.isSuccess, |
|
'msg': instance.msg, |
|
'path': instance.path, |
|
'timestamp': instance.timestamp, |
|
}; |
|
|
|
T? _$nullableGenericFromJson<T>( |
|
Object? input, |
|
T Function(Object? json) fromJson, |
|
) => |
|
input == null ? null : fromJson(input); |
|
|
|
Object? _$nullableGenericToJson<T>( |
|
T? input, |
|
Object? Function(T value) toJson, |
|
) => |
|
input == null ? null : toJson(input);
|
|
|