fromMap static method
Implementation
static UserInfo fromMap(Map map) {
UserInfo info = UserInfo();
info.userId = map['userId'] ?? '';
info.userName = map['userName'] ?? '';
info.portrait = map['portrait'] ?? '';
info.extraMap = map['extraMap'];
info.type = map['type'] ?? 0;
return info;
}