import 'package:json_annotation/json_annotation.dart'; import 'night_card_bean.dart'; part 'user_info_bean.g.dart'; ///用户信息 @JsonSerializable(explicitToJson: true) class UserInfoBean { String? nickName; int? userId; String? phoneNum; String? email; String? userIcon; int? diamond; int? totalGamingTime; bool? isRealName; bool? isJuveniles; String? userName; String? idCard; NightCardBean? nightCard; int? userPlayGameTime; UserInfoBean(this.nickName, this.userId, this.phoneNum, this.email, this.userIcon, this.diamond, this.totalGamingTime, this.isRealName, this.isJuveniles, this.userName, this.idCard, this.nightCard, this.userPlayGameTime); factory UserInfoBean.fromJson(Map json) => _$UserInfoBeanFromJson(json); Map toJson() => _$UserInfoBeanToJson(this); }