31 lines
850 B
Dart
31 lines
850 B
Dart
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<String, dynamic> json) => _$UserInfoBeanFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$UserInfoBeanToJson(this);
|
|
}
|