implementing organisation/customer-specific graphs

This commit is contained in:
Felix 2019-08-19 15:02:02 +01:00
parent 05a57e8203
commit 6cd65b8ac6
6 changed files with 250 additions and 154 deletions

View file

@ -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,
};
}