implementing organisation/customer-specific graphs
This commit is contained in:
parent
05a57e8203
commit
6cd65b8ac6
6 changed files with 250 additions and 154 deletions
|
@ -1,15 +1,18 @@
|
|||
class LoginModel {
|
||||
final String userName;
|
||||
final String token;
|
||||
final String userType;
|
||||
|
||||
LoginModel(this.userName, this.token);
|
||||
LoginModel(this.userName, this.token, this.userType);
|
||||
|
||||
LoginModel.fromJson(Map<String, dynamic> json)
|
||||
: userName = json['display_name'],
|
||||
userType = json['user_type'],
|
||||
token = json['session_key'];
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'name': userName,
|
||||
'user_type': userType,
|
||||
'token': token,
|
||||
};
|
||||
}
|
||||
|
|
Reference in a new issue