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.
32 lines
1.3 KiB
32 lines
1.3 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'sign_info.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
SignInfo _$SignInfoFromJson(Map<String, dynamic> json) => SignInfo() |
|
..point = json['point'] as String? |
|
..todayHasSignin = json['todayHasSignin'] as bool? |
|
..rank = json['rank'] == null |
|
? null |
|
: MemberRank.fromJson(json['rank'] as Map<String, dynamic>) |
|
..signInList = (json['signInList'] as List<dynamic>?) |
|
?.map((e) => SignIn.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..taskList = (json['taskList'] as List<dynamic>?) |
|
?.map((e) => Task.fromJson(e as Map<String, dynamic>)) |
|
.toList() |
|
..rewardList = (json['rewardList'] as List<dynamic>?) |
|
?.map((e) => (e as num).toInt()) |
|
.toList(); |
|
|
|
Map<String, dynamic> _$SignInfoToJson(SignInfo instance) => <String, dynamic>{ |
|
'point': instance.point, |
|
'todayHasSignin': instance.todayHasSignin, |
|
'rank': instance.rank?.toJson(), |
|
'signInList': instance.signInList?.map((e) => e.toJson()).toList(), |
|
'taskList': instance.taskList?.map((e) => e.toJson()).toList(), |
|
'rewardList': instance.rewardList, |
|
};
|
|
|