41 lines
1.1 KiB
Dart
41 lines
1.1 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'ApiResponse.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
ApiResponse<T> _$ApiResponseFromJson<T>(
|
|
Map<String, dynamic> json,
|
|
T Function(Object? json) fromJsonT,
|
|
) =>
|
|
ApiResponse<T>()
|
|
..code = (json['code'] as num?)?.toInt()
|
|
..total = (json['total'] as num?)?.toInt()
|
|
..data = _$nullableGenericFromJson(json['data'], fromJsonT)
|
|
..message = json['message'] as String?;
|
|
|
|
Map<String, dynamic> _$ApiResponseToJson<T>(
|
|
ApiResponse<T> instance,
|
|
Object? Function(T value) toJsonT,
|
|
) =>
|
|
<String, dynamic>{
|
|
'code': instance.code,
|
|
'total': instance.total,
|
|
'data': _$nullableGenericToJson(instance.data, toJsonT),
|
|
'message': instance.message,
|
|
};
|
|
|
|
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);
|