2023-04-30 07:39:09 -04:00
|
|
|
class UserProfile {
|
|
|
|
final String iconUrl;
|
|
|
|
|
|
|
|
UserProfile({required this.iconUrl});
|
|
|
|
|
2023-05-04 14:57:16 -04:00
|
|
|
factory UserProfile.empty() => UserProfile(iconUrl: "");
|
|
|
|
|
2023-04-30 07:39:09 -04:00
|
|
|
factory UserProfile.fromMap(Map map) {
|
2023-04-30 17:14:29 -04:00
|
|
|
return UserProfile(iconUrl: map["iconUrl"] ?? "");
|
2023-04-30 07:39:09 -04:00
|
|
|
}
|
|
|
|
|
2023-04-30 17:14:29 -04:00
|
|
|
Map toMap() {
|
|
|
|
return {
|
|
|
|
"iconUrl": iconUrl,
|
|
|
|
};
|
2023-04-30 07:39:09 -04:00
|
|
|
}
|
|
|
|
}
|