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.
 
 
 
 
 
 

47 lines
1.3 KiB

class UserEntity {
UserEntity();
String? account;
String? avatar;
String? expiration;
String? expire;
String? mobile;
String? name;
String? refreshToken;
String? token;
String? tokenType;
String? userId;
String? userType;
String? workDescribe;
factory UserEntity.fromJson(Map<String, dynamic> json) => UserEntity()
..account = json['account'] as String
..avatar = json['avatar'] as String
..expiration = json['expiration'] as String
..expire = json['expire'] as String
..mobile = json['mobile'] as String
..name = json['name'] as String
..refreshToken = json['refreshToken'] as String
..token = json['token'] as String
..tokenType = json['tokenType'] as String
..userId = json['userId'] as String
..userType = json['userType'] as String
..workDescribe = json['workDescribe'] as String;
Map<String, dynamic> toJson() => <String, dynamic>{
'account': this.account,
'avatar': this.avatar,
'expiration': this.expiration,
'expire': this.expire,
'mobile': this.mobile,
'name': this.name,
'refreshToken': this.refreshToken,
'token': this.token,
'tokenType': this.tokenType,
'userId': this.userId,
'userType': this.userType,
'workDescribe': this.workDescribe,
};
}