17 lines
No EOL
314 B
Dart
17 lines
No EOL
314 B
Dart
class UserProfile {
|
|
final String iconUrl;
|
|
|
|
UserProfile({required this.iconUrl});
|
|
|
|
factory UserProfile.empty() => UserProfile(iconUrl: "");
|
|
|
|
factory UserProfile.fromMap(Map map) {
|
|
return UserProfile(iconUrl: map["iconUrl"] ?? "");
|
|
}
|
|
|
|
Map toMap() {
|
|
return {
|
|
"iconUrl": iconUrl,
|
|
};
|
|
}
|
|
} |