chore: initial commit Dutra Store POS app
This commit is contained in:
25
lib/models/user_profile.dart
Normal file
25
lib/models/user_profile.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
class UserProfile {
|
||||
final String id;
|
||||
final String role;
|
||||
final String? fullName;
|
||||
|
||||
UserProfile({
|
||||
required this.id,
|
||||
required this.role,
|
||||
this.fullName,
|
||||
});
|
||||
|
||||
factory UserProfile.fromJson(Map<String, dynamic> json) {
|
||||
return UserProfile(
|
||||
id: json['id'] as String,
|
||||
role: json['role'] as String,
|
||||
fullName: json['full_name'] as String?,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'id': id,
|
||||
'role': role,
|
||||
'full_name': fullName,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user