correct appuser object to match api output
This commit is contained in:
parent
a719e9a4bb
commit
14b92185e3
1 changed files with 3 additions and 5 deletions
|
|
@ -1,18 +1,16 @@
|
||||||
// ignore: file_names
|
// ignore: file_names
|
||||||
class AppUser {
|
class AppUser {
|
||||||
final int idusers;
|
final int idUser;
|
||||||
final String email;
|
final String email;
|
||||||
// ignore: non_constant_identifier_names
|
|
||||||
final int docOffice_id;
|
final int docOffice_id;
|
||||||
final String fname;
|
final String fname;
|
||||||
final String lname;
|
final String lname;
|
||||||
final String type;
|
final String type;
|
||||||
// ignore: non_constant_identifier_names
|
|
||||||
final String app_id;
|
final String app_id;
|
||||||
final String username;
|
final String username;
|
||||||
|
|
||||||
const AppUser(
|
const AppUser(
|
||||||
this.idusers,
|
this.idUser,
|
||||||
this.email,
|
this.email,
|
||||||
this.docOffice_id,
|
this.docOffice_id,
|
||||||
this.fname,
|
this.fname,
|
||||||
|
|
@ -24,7 +22,7 @@ class AppUser {
|
||||||
|
|
||||||
factory AppUser.fromJson(dynamic json) {
|
factory AppUser.fromJson(dynamic json) {
|
||||||
return AppUser(
|
return AppUser(
|
||||||
json['idusers'],
|
json['idUser'],
|
||||||
json['email'],
|
json['email'],
|
||||||
json['docOffice_id'],
|
json['docOffice_id'],
|
||||||
json['fname'],
|
json['fname'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue