|
|
|
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 mitraMDoctorID;
|
|
|
|
late String mitraMDoctorAddressID;
|
|
|
|
late String mitraPassword;
|
|
|
|
late String mitraUsername;
|
|
|
|
late String aggrement;
|
|
|
|
late String mDoctorName;
|
|
|
|
late List<String> aggrementID;
|
|
|
|
|
|
|
|
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,
|
|
|
|
this.mitraMDoctorID = "0",
|
|
|
|
this.mitraMDoctorAddressID = "0",
|
|
|
|
this.mDoctorName = "",
|
|
|
|
this.aggrementID = const [],
|
|
|
|
});
|
|
|
|
|
|
|
|
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();
|
|
|
|
mitraMDoctorID = json['MitraM_DoctorID'].toString();
|
|
|
|
mitraMDoctorAddressID = json['MitraM_DoctorAddressID'].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 = <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;
|
|
|
|
return data;
|
|
|
|
}
|
|
|
|
}
|