update appUser object to cater for new fields
This commit is contained in:
parent
32d408bdf6
commit
7b79ad619a
1 changed files with 3 additions and 0 deletions
|
|
@ -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'],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue