OpenContacts/lib/models/user_profile.dart
2023-04-30 23:14:29 +02:00

15 lines
No EOL
254 B
Dart

class UserProfile {
final String iconUrl;
UserProfile({required this.iconUrl});
factory UserProfile.fromMap(Map map) {
return UserProfile(iconUrl: map["iconUrl"] ?? "");
}
Map toMap() {
return {
"iconUrl": iconUrl,
};
}
}