UserInfo.from constructor
UserInfo.from(
- Map data
Implementation
UserInfo.from(Map data)
: oId = data['oId'] ?? '',
userNo = data['userNo'] ?? '',
userName = data['userName'] ?? '',
nickname = data['userNickname'] ?? '',
userURL = data['userURL'] ?? '',
city = data['userCity'] ?? '',
intro = data['userIntro'] ?? '',
isOnline = data['userOnlineFlag'] ?? '',
point = data['userPoint'] ?? '',
role = data['userRole'] ?? '',
appRole = UserAppRole.values[int.parse(data['userAppRole'] ?? '0')],
avatarURL = data['userAvatarURL'] ?? '',
cardBg = data['cardBg'] ?? '',
followingCnt = data['followingUserCount'] ?? '',
followerCnt = data['followerCount'] ?? '',
onlineMinute = data['onlineMinute'] ?? '',
canFollow = data['canFollow'] ?? 'self',
allMetals = toMetal(data['allMetalOwned'] ?? '[]'),
sysMetal = toMetal(data['sysMetal'] ?? '[]');