2023-04-30 07:39:09 -04:00
|
|
|
class UserProfile {
|
|
|
|
final String iconUrl;
|
|
|
|
|
|
|
|
UserProfile({required this.iconUrl});
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|