OpenContacts/lib/models/user_profile.dart
2023-05-04 20:57:16 +02:00

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,
};
}
}