OpenContacts/lib/models/users/user_profile.dart

17 lines
No EOL
316 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,
};
}
}