One UI in flutter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
1.7 KiB

class OneLocalUserModel {
late String mUserID;
late String mUserUsername;
late String mUserGroupDashboard;
late String mUserDefaultTSampleStationID;
late String mStaffName;
late String isCourier;
late String ip;
late String agent;
late String version;
late String lastLogin;
late int? mSatelliteID;
String? token;
OneLocalUserModel({
required this.mUserID,
required this.mUserUsername,
required this.mUserGroupDashboard,
required this.mUserDefaultTSampleStationID,
required this.mStaffName,
required this.isCourier,
required this.ip,
required this.agent,
required this.version,
required this.lastLogin,
this.mSatelliteID,
});
OneLocalUserModel.fromJson(Map<String, dynamic> json) {
mUserID = json['M_UserID'];
mUserUsername = json['M_UserUsername'];
mUserGroupDashboard = json['M_UserGroupDashboard'];
mUserDefaultTSampleStationID = json['M_UserDefaultT_SampleStationID'];
mStaffName = json['M_StaffName'];
isCourier = json['is_courier'];
ip = json['ip'];
agent = json['agent'];
version = json['version'];
lastLogin = json['last-login'];
mSatelliteID = json['M_SatelliteID'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['M_UserID'] = mUserID;
data['M_UserUsername'] = mUserUsername;
data['M_UserGroupDashboard'] = mUserGroupDashboard;
data['M_UserDefaultT_SampleStationID'] = mUserDefaultTSampleStationID;
data['M_StaffName'] = mStaffName;
data['is_courier'] = isCourier;
data['ip'] = ip;
data['agent'] = agent;
data['version'] = version;
data['last-login'] = lastLogin;
data['M_SatelliteID'] = mSatelliteID;
return data;
}
}