You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
diplomatic-quarter/lib/models/tamara_request_model.dart

121 lines
3.7 KiB
Dart

class TamaraRequestModel {
String merchantReference;
String merchantIdentifier;
String clientRequestID;
num amount;
String currency;
String language;
String commandType;
String signature;
String customerEmail;
String orderDescription;
bool isInstallment;
int projectID;
String accessCode;
String sHARequestPhase;
String sHAResponsePhase;
String customerName;
String fileNumber;
bool patientOutSA;
String deviceToken;
String longitude;
String latitude;
String appointmentNo;
var serviceID;
var liveServiceID;
String doctorID;
var appointmentDate;
bool isSchedule;
TamaraRequestModel(
{this.merchantReference,
this.merchantIdentifier,
this.clientRequestID,
this.amount,
this.currency,
this.language,
this.commandType,
this.signature,
this.customerEmail,
this.orderDescription,
this.isInstallment,
this.projectID,
this.accessCode,
this.sHARequestPhase,
this.sHAResponsePhase,
this.customerName,
this.fileNumber,
this.patientOutSA,
this.deviceToken,
this.longitude,
this.latitude,
this.appointmentNo,
this.serviceID,
this.liveServiceID,
this.appointmentDate,
this.doctorID,
this.isSchedule});
TamaraRequestModel.fromJson(Map<String, dynamic> json) {
merchantReference = json['Merchant_Reference'];
merchantIdentifier = json['Merchant_Identifier'];
clientRequestID = json['ClientRequestID'];
amount = json['Amount'];
currency = json['Currency'];
language = json['Language'];
commandType = json['CommandType'];
signature = json['Signature'];
customerEmail = json['CustomerEmail'];
orderDescription = json['OrderDescription'];
isInstallment = json['IsInstallment'];
projectID = json['ProjectID'];
accessCode = json['Access_code'];
sHARequestPhase = json['SHA_RequestPhase'];
sHAResponsePhase = json['SHA_ResponsePhase'];
customerName = json['CustomerName'];
fileNumber = json['FileNumber'];
patientOutSA = json['PatientOutSA'];
deviceToken = json['DeviceToken'];
longitude = json['Longitude'];
latitude = json['Latitude'];
appointmentNo = json['AppointmentNo'];
serviceID = json['Service_ID'];
liveServiceID = json['Live_ServiceID'];
doctorID = json['DoctorID'];
appointmentDate = json['AppointmentDate'];
isSchedule = json['IsSchedule'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = new Map<String, dynamic>();
data['Merchant_Reference'] = this.merchantReference;
data['Merchant_Identifier'] = this.merchantIdentifier;
data['ClientRequestID'] = this.clientRequestID;
data['Amount'] = this.amount;
data['Currency'] = this.currency;
data['Language'] = this.language;
data['CommandType'] = this.commandType;
data['Signature'] = this.signature;
data['CustomerEmail'] = this.customerEmail;
data['OrderDescription'] = this.orderDescription;
data['IsInstallment'] = this.isInstallment;
data['ProjectID'] = this.projectID;
data['Access_code'] = this.accessCode;
data['SHA_RequestPhase'] = this.sHARequestPhase;
data['SHA_ResponsePhase'] = this.sHAResponsePhase;
data['CustomerName'] = this.customerName;
data['FileNumber'] = this.fileNumber;
data['PatientOutSA'] = this.patientOutSA;
data['DeviceToken'] = this.deviceToken;
data['Longitude'] = this.longitude;
data['Latitude'] = this.latitude;
data['AppointmentNo'] = this.appointmentNo;
data['Service_ID'] = this.serviceID;
data['Live_ServiceID'] = this.liveServiceID;
data['DoctorID'] = this.doctorID;
data['AppointmentDate'] = this.appointmentDate;
data['IsSchedule'] = this.isSchedule;
return data;
}
}