30 lines
923 B
Dart
30 lines
923 B
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'api_list.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_ApiList<T> _$ApiListFromJson<T>(
|
|
Map<String, dynamic> json,
|
|
T Function(Object? json) fromJsonT,
|
|
) => _ApiList<T>(
|
|
cursor: json['cursor'] as String? ?? '',
|
|
page: (json['page'] as num?)?.toInt() ?? 1,
|
|
size: (json['size'] as num?)?.toInt() ?? 10,
|
|
total: (json['total'] as num?)?.toInt() ?? 0,
|
|
list: (json['list'] as List<dynamic>?)?.map(fromJsonT).toList() ?? const [],
|
|
);
|
|
|
|
Map<String, dynamic> _$ApiListToJson<T>(
|
|
_ApiList<T> instance,
|
|
Object? Function(T value) toJsonT,
|
|
) => <String, dynamic>{
|
|
'cursor': instance.cursor,
|
|
'page': instance.page,
|
|
'size': instance.size,
|
|
'total': instance.total,
|
|
'list': instance.list.map(toJsonT).toList(),
|
|
};
|