reorder file structure
This commit is contained in:
35
Frontend/lib/mih_components/mih_objects/app_user.dart
Normal file
35
Frontend/lib/mih_components/mih_objects/app_user.dart
Normal file
@@ -0,0 +1,35 @@
|
||||
// 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'],
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user