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