AppUser object created. Add patient page with API call added nd completed
This commit is contained in:
15
Frontend/patient_manager/lib/objects/AppUser.dart
Normal file
15
Frontend/patient_manager/lib/objects/AppUser.dart
Normal file
@@ -0,0 +1,15 @@
|
||||
class AppUser {
|
||||
final int idusers;
|
||||
final String email;
|
||||
final int docOffice_id;
|
||||
|
||||
const AppUser(
|
||||
this.idusers,
|
||||
this.email,
|
||||
this.docOffice_id,
|
||||
);
|
||||
|
||||
factory AppUser.fromJson(dynamic json) {
|
||||
return AppUser(json['idusers'], json['email'], json['docOffice_id']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user