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.

87 lines
2.9 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;
2 years ago
late String mitraMDoctorID;
late String mitraMDoctorAddressID;
2 years ago
late String mitraPassword;
late String mitraUsername;
late String aggrement;
2 years ago
late String mDoctorName;
late List<String> aggrementID;
2 years ago
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,
2 years ago
this.mitraMDoctorID = "0",
this.mitraMDoctorAddressID = "0",
this.mDoctorName = "",
this.aggrementID = const [],
2 years ago
});
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();
2 years ago
mitraMDoctorID = json['MitraM_DoctorID'].toString();
mitraMDoctorAddressID = json['MitraM_DoctorAddressID'].toString();
2 years ago
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() {
2 years ago
final Map<String, dynamic> data = <String, dynamic>{};
data['M_CompanyAddress'] = mCompanyAddress;
data['M_CompanyName'] = mCompanyName;
data['MitraCommitment'] = mitraCommitment;
data['MitraCreated'] = mitraCreated;
data['MitraHoldDate'] = mitraHoldDate;
data['MitraHoldM_UserID'] = mitraHoldMUserID;
data['MitraID'] = mitraID;
data['MitraIDNo'] = mitraIDNo;
data['MitraIsActive'] = mitraIsActive;
data['MitraIsHold'] = mitraIsHold;
data['MitraLastUpdated'] = mitraLastUpdated;
data['MitraM_CompanyID'] = mitraMCompanyID;
data['MitraM_UserID'] = mitraMUserID;
data['MitraPassword'] = mitraPassword;
data['MitraUsername'] = mitraUsername;
2 years ago
return data;
}
}