Code is B-E-A-U-TIFUL! All complies to standards.
Complies to flutter/dart 'pedantic' coding standards (their name, not mine)
This commit is contained in:
parent
19021a9a09
commit
55310068ea
55 changed files with 915 additions and 785 deletions
|
@ -1,8 +1,4 @@
|
|||
class LoginModel {
|
||||
final String userName;
|
||||
final String token;
|
||||
final String userType;
|
||||
|
||||
LoginModel(this.userName, this.token, this.userType);
|
||||
|
||||
LoginModel.fromJson(Map<String, dynamic> json)
|
||||
|
@ -10,6 +6,10 @@ class LoginModel {
|
|||
userType = json['user_type'],
|
||||
token = json['session_key'];
|
||||
|
||||
final String userName;
|
||||
final String token;
|
||||
final String userType;
|
||||
|
||||
Map<String, dynamic> toJson() => {
|
||||
'name': userName,
|
||||
'user_type': userType,
|
||||
|
|
Reference in a new issue