update appUser object to cater for new fields
This commit is contained in:
@@ -8,6 +8,7 @@ class AppUser {
|
|||||||
final String app_id;
|
final String app_id;
|
||||||
final String username;
|
final String username;
|
||||||
final String pro_pic_path;
|
final String pro_pic_path;
|
||||||
|
final String purpose;
|
||||||
|
|
||||||
const AppUser(
|
const AppUser(
|
||||||
this.idUser,
|
this.idUser,
|
||||||
@@ -18,6 +19,7 @@ class AppUser {
|
|||||||
this.app_id,
|
this.app_id,
|
||||||
this.username,
|
this.username,
|
||||||
this.pro_pic_path,
|
this.pro_pic_path,
|
||||||
|
this.purpose,
|
||||||
);
|
);
|
||||||
|
|
||||||
factory AppUser.fromJson(dynamic json) {
|
factory AppUser.fromJson(dynamic json) {
|
||||||
@@ -30,6 +32,7 @@ class AppUser {
|
|||||||
json['app_id'],
|
json['app_id'],
|
||||||
json['username'],
|
json['username'],
|
||||||
json['pro_pic_path'],
|
json['pro_pic_path'],
|
||||||
|
json['purpose'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user