mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-06-06 13:59:19 +08:00
42 lines
1.1 KiB
Dart
42 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'api_result.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
ApiResult<T> _$ApiResultFromJson<T>(
|
|
Map<String, dynamic> json,
|
|
T Function(Object? json) fromJsonT,
|
|
) =>
|
|
ApiResult<T>(
|
|
ok: json['ok'] as bool,
|
|
status: (json['status'] as num).toInt(),
|
|
data: _$nullableGenericFromJson(json['data'], fromJsonT),
|
|
error: json['error'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$ApiResultToJson<T>(
|
|
ApiResult<T> instance,
|
|
Object? Function(T value) toJsonT,
|
|
) =>
|
|
<String, dynamic>{
|
|
'ok': instance.ok,
|
|
'status': instance.status,
|
|
'data': _$nullableGenericToJson(instance.data, toJsonT),
|
|
'error': instance.error,
|
|
};
|
|
|
|
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);
|