Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
class Profile {
|
||||
Profile({required this.id, required this.role, required this.fullName});
|
||||
|
||||
final String id;
|
||||
final String role;
|
||||
final String fullName;
|
||||
|
||||
factory Profile.fromMap(Map<String, dynamic> map) {
|
||||
return Profile(
|
||||
id: map['id'] as String,
|
||||
role: map['role'] as String? ?? 'standard',
|
||||
fullName: map['full_name'] as String? ?? '',
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user