Files
mih-project/Frontend/patient_manager/lib/mih_objects/app_user.dart
2024-09-17 16:14:54 +02:00

36 lines
640 B
Dart

// ignore: file_names
class AppUser {
final int idUser;
final String email;
final String fname;
final String lname;
final String type;
final String app_id;
final String username;
final String pro_pic_path;
const AppUser(
this.idUser,
this.email,
this.fname,
this.lname,
this.type,
this.app_id,
this.username,
this.pro_pic_path,
);
factory AppUser.fromJson(dynamic json) {
return AppUser(
json['idUser'],
json['email'],
json['fname'],
json['lname'],
json['type'],
json['app_id'],
json['username'],
json['pro_pic_path'],
);
}
}