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.

77 lines
2.6 KiB

2 years ago
class MitraResponseModel {
late String mCompanyAddress;
late String mCompanyName;
late String mitraCommitment;
late String mitraCreated;
late String mitraHoldDate;
late String mitraHoldMUserID;
late String mitraID;
late String mitraIDNo;
late String mitraIsActive;
late String mitraIsHold;
late String mitraLastUpdated;
late String mitraMCompanyID;
late String mitraMUserID;
late String mitraPassword;
late String mitraUsername;
late String aggrement;
MitraResponseModel({
required this.mCompanyAddress,
required this.mCompanyName,
required this.mitraCommitment,
required this.mitraCreated,
required this.mitraHoldDate,
required this.mitraHoldMUserID,
required this.mitraID,
required this.mitraIDNo,
required this.mitraIsActive,
required this.mitraIsHold,
required this.mitraLastUpdated,
required this.mitraMCompanyID,
required this.mitraMUserID,
required this.mitraPassword,
required this.mitraUsername,
required this.aggrement,
});
MitraResponseModel.fromJson(Map<String, dynamic> json) {
mCompanyAddress = json['M_CompanyAddress'];
mCompanyName = json['M_CompanyName'];
mitraCommitment = json['MitraCommitment'];
mitraCreated = json['MitraCreated'];
mitraHoldDate = json['MitraHoldDate'];
mitraHoldMUserID = json['MitraHoldM_UserID']?.toString() ?? "";
mitraID = json['MitraID'].toString();
mitraIDNo = json['MitraIDNo'];
mitraIsActive = json['MitraIsActive'];
mitraIsHold = json['MitraIsHold'];
mitraLastUpdated = json['MitraLastUpdated'];
mitraMCompanyID = json['MitraM_CompanyID'].toString();
mitraMUserID = json['MitraM_UserID']?.toString() ?? "";
mitraPassword = json['MitraPassword'];
mitraUsername = json['MitraUsername'];
aggrement = json['aggrement'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['M_CompanyAddress'] = this.mCompanyAddress;
data['M_CompanyName'] = this.mCompanyName;
data['MitraCommitment'] = this.mitraCommitment;
data['MitraCreated'] = this.mitraCreated;
data['MitraHoldDate'] = this.mitraHoldDate;
data['MitraHoldM_UserID'] = this.mitraHoldMUserID;
data['MitraID'] = this.mitraID;
data['MitraIDNo'] = this.mitraIDNo;
data['MitraIsActive'] = this.mitraIsActive;
data['MitraIsHold'] = this.mitraIsHold;
data['MitraLastUpdated'] = this.mitraLastUpdated;
data['MitraM_CompanyID'] = this.mitraMCompanyID;
data['MitraM_UserID'] = this.mitraMUserID;
data['MitraPassword'] = this.mitraPassword;
data['MitraUsername'] = this.mitraUsername;
return data;
}
}