convertUserInfo method
Implementation
UserInfoProtocol convertUserInfo(UserInfo user) {
String? identify;
if (user.ext?.isNotEmpty == true) {
try {
identify = json.decode(user.ext!)['identify'];
// ignore: empty_catches
} catch (e) {}
}
return UserEntity(
user.userId,
avatarURL: user.avatarUrl,
nickname: user.nickName,
gender: user.gender,
identify: identify,
);
}