You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
driver-app/lib/core/model/authentication/authenticated_user.dart

65 lines
1.6 KiB
Dart

class AuthenticatedUser {
int iD;
int userID;
String password;
String userName;
int roleID;
String name;
bool active;
String createdOn;
int createdBy;
dynamic editedOn;
dynamic editedBy;
String mobileNumber;
int realRoleID;
AuthenticatedUser(
{this.iD,
this.userID,
this.password,
this.userName,
this.roleID,
this.name,
this.active,
this.createdOn,
this.createdBy,
this.editedOn,
this.editedBy,
this.mobileNumber,
this.realRoleID});
AuthenticatedUser.fromJson(Map<String, dynamic> json) {
iD = json['ID'];
userID = json['UserID'];
password = json['password'];
userName = json['UserName'];
roleID = json['RoleID'];
name = json['Name'];
active = json['Active'];
createdOn = json['CreatedOn'];
createdBy = json['CreatedBy'];
editedOn = json['EditedOn'];
editedBy = json['EditedBy'];
mobileNumber = json['MobileNumber'];
realRoleID = json['RealRoleID'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['ID'] = this.iD;
data['UserID'] = this.userID;
data['password'] = this.password;
data['UserName'] = this.userName;
data['RoleID'] = this.roleID;
data['Name'] = this.name;
data['Active'] = this.active;
data['CreatedOn'] = this.createdOn;
data['CreatedBy'] = this.createdBy;
data['EditedOn'] = this.editedOn;
data['EditedBy'] = this.editedBy;
data['MobileNumber'] = this.mobileNumber;
data['RealRoleID'] = this.realRoleID;
return data;
}
}