class AmbulanceRequestOrdersModel { String statusText; int paymentStatus; dynamic clientRequestid; dynamic paymentStatusText; dynamic projectName; String nearestProjectName; double paymentAmount; WFOrder wFOrder; String serviceText; bool isSentForApproval; int exaCartOrderId; bool isTimer; int timeSeconds; int totalPendingSeconds; int timeMinute; int timeHour; int timeTotalSeconds; int timeTotalMinute; int timeTotalHour; dynamic approvalStatus; bool isActive; int clickButton; dynamic orderHistory; String pickupLocation; String dropOffLocation; String clinicName; String doctorName; String branch; String time; dynamic notes; int id; String patientId; int patientOutSa; bool isOutPatient; int projectId; int nearestProjectId; dynamic longitude; dynamic latitude; dynamic appointmentNo; dynamic dischargeId; int statusId; int serviceId; int channel; Orderpayment orderpayment; dynamic orderselectedservice; dynamic wforder; dynamic orderapprovalobj; String created; dynamic createdBy; dynamic modified; dynamic modifiedBy; bool isDeleted; AmbulanceRequestOrdersModel( {this.statusText, this.paymentStatus, this.clientRequestid, this.paymentStatusText, this.projectName, this.nearestProjectName, this.paymentAmount, this.wFOrder, this.serviceText, this.isSentForApproval, this.exaCartOrderId, this.isTimer, this.timeSeconds, this.totalPendingSeconds, this.timeMinute, this.timeHour, this.timeTotalSeconds, this.timeTotalMinute, this.timeTotalHour, this.approvalStatus, this.isActive, this.clickButton, this.orderHistory, this.pickupLocation, this.dropOffLocation, this.clinicName, this.doctorName, this.branch, this.time, this.notes, this.id, this.patientId, this.patientOutSa, this.isOutPatient, this.projectId, this.nearestProjectId, this.longitude, this.latitude, this.appointmentNo, this.dischargeId, this.statusId, this.serviceId, this.channel, this.orderpayment, this.orderselectedservice, this.wforder, this.orderapprovalobj, this.created, this.createdBy, this.modified, this.modifiedBy, this.isDeleted}); AmbulanceRequestOrdersModel.fromJson(Map json) { statusText = json['statusText']; paymentStatus = json['paymentStatus']; clientRequestid = json['clientRequestid']; paymentStatusText = json['paymentStatusText']; projectName = json['projectName']; nearestProjectName = json['nearestProjectName']; paymentAmount = json['paymentAmount']; wFOrder = json['wF_order'] != null ? new WFOrder.fromJson(json['wF_order']) : null; serviceText = json['serviceText']; isSentForApproval = json['isSentForApproval']; exaCartOrderId = json['exaCart_OrderId']; isTimer = json['isTimer']; timeSeconds = json['timeSeconds']; totalPendingSeconds = json['totalPendingSeconds']; timeMinute = json['timeMinute']; timeHour = json['timeHour']; timeTotalSeconds = json['timeTotalSeconds']; timeTotalMinute = json['timeTotalMinute']; timeTotalHour = json['timeTotalHour']; approvalStatus = json['approvalStatus']; isActive = json['isActive']; clickButton = json['clickButton']; orderHistory = json['orderHistory']; pickupLocation = json['pickupLocation']; dropOffLocation = json['dropOffLocation']; clinicName = json['clinicName']; doctorName = json['doctorName']; branch = json['branch']; time = json['time']; notes = json['notes']; id = json['id']; patientId = json['patientId']; patientOutSa = json['patientOutSa']; isOutPatient = json['isOutPatient']; projectId = json['projectId']; nearestProjectId = json['nearestProjectId']; longitude = json['longitude']; latitude = json['latitude']; appointmentNo = json['appointmentNo']; dischargeId = json['dischargeId']; statusId = json['statusId']; serviceId = json['serviceId']; channel = json['channel']; orderpayment = json['orderpayment'] != null ? new Orderpayment.fromJson(json['orderpayment']) : null; orderselectedservice = json['orderselectedservice']; wforder = json['wforder']; orderapprovalobj = json['orderapprovalobj']; created = json['created']; createdBy = json['createdBy']; modified = json['modified']; modifiedBy = json['modifiedBy']; isDeleted = json['isDeleted']; } Map toJson() { final Map data = new Map(); data['statusText'] = this.statusText; data['paymentStatus'] = this.paymentStatus; data['clientRequestid'] = this.clientRequestid; data['paymentStatusText'] = this.paymentStatusText; data['projectName'] = this.projectName; data['nearestProjectName'] = this.nearestProjectName; data['paymentAmount'] = this.paymentAmount; if (this.wFOrder != null) { data['wF_order'] = this.wFOrder.toJson(); } data['serviceText'] = this.serviceText; data['isSentForApproval'] = this.isSentForApproval; data['exaCart_OrderId'] = this.exaCartOrderId; data['isTimer'] = this.isTimer; data['timeSeconds'] = this.timeSeconds; data['totalPendingSeconds'] = this.totalPendingSeconds; data['timeMinute'] = this.timeMinute; data['timeHour'] = this.timeHour; data['timeTotalSeconds'] = this.timeTotalSeconds; data['timeTotalMinute'] = this.timeTotalMinute; data['timeTotalHour'] = this.timeTotalHour; data['approvalStatus'] = this.approvalStatus; data['isActive'] = this.isActive; data['clickButton'] = this.clickButton; data['orderHistory'] = this.orderHistory; data['pickupLocation'] = this.pickupLocation; data['dropOffLocation'] = this.dropOffLocation; data['clinicName'] = this.clinicName; data['doctorName'] = this.doctorName; data['branch'] = this.branch; data['time'] = this.time; data['notes'] = this.notes; data['id'] = this.id; data['patientId'] = this.patientId; data['patientOutSa'] = this.patientOutSa; data['isOutPatient'] = this.isOutPatient; data['projectId'] = this.projectId; data['nearestProjectId'] = this.nearestProjectId; data['longitude'] = this.longitude; data['latitude'] = this.latitude; data['appointmentNo'] = this.appointmentNo; data['dischargeId'] = this.dischargeId; data['statusId'] = this.statusId; data['serviceId'] = this.serviceId; data['channel'] = this.channel; if (this.orderpayment != null) { data['orderpayment'] = this.orderpayment.toJson(); } data['orderselectedservice'] = this.orderselectedservice; data['wforder'] = this.wforder; data['orderapprovalobj'] = this.orderapprovalobj; data['created'] = this.created; data['createdBy'] = this.createdBy; data['modified'] = this.modified; data['modifiedBy'] = this.modifiedBy; data['isDeleted'] = this.isDeleted; return data; } } class WFOrder { dynamic wfButtonsDTO; int id; int orderId; int previousStep; int nextStep; int serviceId; dynamic order; String created; dynamic createdBy; dynamic modified; dynamic modifiedBy; bool isDeleted; WFOrder({this.wfButtonsDTO, this.id, this.orderId, this.previousStep, this.nextStep, this.serviceId, this.order, this.created, this.createdBy, this.modified, this.modifiedBy, this.isDeleted}); WFOrder.fromJson(Map json) { wfButtonsDTO = json['wf_ButtonsDTO']; id = json['id']; orderId = json['orderId']; previousStep = json['previousStep']; nextStep = json['nextStep']; serviceId = json['serviceId']; order = json['order']; created = json['created']; createdBy = json['createdBy']; modified = json['modified']; modifiedBy = json['modifiedBy']; isDeleted = json['isDeleted']; } Map toJson() { final Map data = new Map(); data['wf_ButtonsDTO'] = this.wfButtonsDTO; data['id'] = this.id; data['orderId'] = this.orderId; data['previousStep'] = this.previousStep; data['nextStep'] = this.nextStep; data['serviceId'] = this.serviceId; data['order'] = this.order; data['created'] = this.created; data['createdBy'] = this.createdBy; data['modified'] = this.modified; data['modifiedBy'] = this.modifiedBy; data['isDeleted'] = this.isDeleted; return data; } } class Orderpayment { int id; int orderId; dynamic clientRequestId; double totalAmount; int paymentStatus; dynamic order; String created; dynamic createdBy; dynamic modified; dynamic modifiedBy; bool isDeleted; Orderpayment({this.id, this.orderId, this.clientRequestId, this.totalAmount, this.paymentStatus, this.order, this.created, this.createdBy, this.modified, this.modifiedBy, this.isDeleted}); Orderpayment.fromJson(Map json) { id = json['id']; orderId = json['orderId']; clientRequestId = json['clientRequestId']; totalAmount = json['totalAmount']; paymentStatus = json['paymentStatus']; order = json['order']; created = json['created']; createdBy = json['createdBy']; modified = json['modified']; modifiedBy = json['modifiedBy']; isDeleted = json['isDeleted']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['orderId'] = this.orderId; data['clientRequestId'] = this.clientRequestId; data['totalAmount'] = this.totalAmount; data['paymentStatus'] = this.paymentStatus; data['order'] = this.order; data['created'] = this.created; data['createdBy'] = this.createdBy; data['modified'] = this.modified; data['modifiedBy'] = this.modifiedBy; data['isDeleted'] = this.isDeleted; return data; } }