class AuthenticatedUser { int iD; int userID; String password; String userName; int roleID; String name; bool active; String createdOn; int createdBy; Null editedOn; Null 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 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 toJson() { final Map data = new Map(); 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; } }