class Orders { int? deliveryid; int? orderheaderid; int? applocationid; int? configid; int? partnerid; int? tenantid; int? moduleid; int? locationid; int? categoryid; int? userid; int? subcategoryid; String? orderid; String? deliverydate; String? orderstatus; String? assigntime; String? starttime; String? arrivaltime; String? pickuptime; String? deliverytime; String? canceltime; int? itemcount; double? orderamount; int? customerid; String? pickupcustomer; String? pickupcontactno; String? pickupaddress; String? pickuplocation; int? pickuplocationid; String? pickuplat; String? pickuplon; int? deliverycustomerid; int? deliverylocationid; String? deliverycustomer; String? deliverycontactno; String? deliveryaddress; String? deliverylocation; String? droplat; String? droplon; String? deliverylat; String? deliverylong; double? deliverycharges; double? deliveryamt; String? deliverytype; String? notes; String? ordernotes; String? riderslat; String? riderslon; int? firstmilekm; double? firstmilecharges; double? lastmilecharges; double? ridercharges; String? kms; String? actualkms; int? paymenttype; String? tenantname; String? tenantcontactno; String? tenanttoken; String? tenantsuburb; String? tenantcity; String? locationname; String? locationcontactno; String? locationsuburb; String? ridername; String? userfcmtoken; int? queueid; int? smsdelivery; bool startStatus; Orders({ this.deliveryid, this.orderheaderid, this.applocationid, this.configid, this.partnerid, this.tenantid, this.moduleid, this.locationid, this.categoryid, this.userid, this.subcategoryid, this.orderid, this.deliverydate, this.orderstatus, this.assigntime, this.starttime, this.arrivaltime, this.pickuptime, this.deliverytime, this.canceltime, this.itemcount, this.orderamount, this.customerid, this.pickupcustomer, this.pickupcontactno, this.pickupaddress, this.pickuplocation, this.pickuplocationid, this.pickuplat, this.pickuplon, this.deliverycustomerid, this.deliverylocationid, this.deliverycustomer, this.deliverycontactno, this.deliveryaddress, this.deliverylocation, this.droplat, this.droplon, this.deliverylat, this.deliverylong, this.deliverycharges, this.deliveryamt, this.deliverytype, this.notes, this.ordernotes, this.riderslat, this.riderslon, this.firstmilekm, this.firstmilecharges, this.lastmilecharges, this.ridercharges, this.kms, this.actualkms, this.paymenttype, this.tenantname, this.tenantcontactno, this.tenanttoken, this.tenantsuburb, this.tenantcity, this.locationname, this.locationcontactno, this.locationsuburb, this.ridername, this.userfcmtoken, this.queueid, this.smsdelivery, this.startStatus = false, }); factory Orders.fromJson(Map json) { return Orders( deliveryid: json['deliveryid'] as int?, orderheaderid: json['orderheaderid'] as int?, applocationid: json['applocationid'] as int?, configid: json['configid'] as int?, partnerid: json['partnerid'] as int?, tenantid: json['tenantid'] as int?, moduleid: json['moduleid'] as int?, locationid: json['locationid'] as int?, categoryid: json['categoryid'] as int?, userid: json['userid'] as int?, subcategoryid: json['subcategoryid'] as int?, orderid: json['orderid'] as String?, deliverydate: json['deliverydate'] as String?, orderstatus: json['orderstatus'] as String?, assigntime: json['assigntime'] as String?, starttime: json['starttime'] as String?, arrivaltime: json['arrivaltime'] as String?, pickuptime: json['pickuptime'] as String?, deliverytime: json['deliverytime'] as String?, canceltime: json['canceltime'] as String?, itemcount: json['itemcount'] as int?, orderamount: (json['orderamount'] as num?)?.toDouble(), customerid: json['customerid'] as int?, pickupcustomer: json['pickupcustomer'] as String?, pickupcontactno: json['pickupcontactno'] as String?, pickupaddress: json['Pickupaddress'] as String?, pickuplocation: json['pickuplocation'] as String?, pickuplocationid: json['pickuplocationid'] as int?, pickuplat: json['pickuplat'] as String?, pickuplon: json['pickuplon'] as String?, deliverycustomerid: json['deliverycustomerid'] as int?, deliverylocationid: json['deliverylocationid'] as int?, deliverycustomer: json['deliverycustomer'] as String?, deliverycontactno: json['deliverycontactno'] as String?, deliveryaddress: json['deliveryaddress'] as String?, deliverylocation: json['deliverylocation'] as String?, droplat: json['droplat'] as String?, droplon: json['droplon'] as String?, deliverylat: json['deliverylat'] as String?, deliverylong: json['deliverylong'] as String?, deliverycharges: (json['deliverycharges'] as num?)?.toDouble(), deliveryamt: (json['deliveryamt'] as num?)?.toDouble(), deliverytype: json['deliverytype'] as String?, notes: json['notes'] as String?, ordernotes: json['ordernotes'] as String?, riderslat: json['riderslat'] as String?, riderslon: json['riderslon'] as String?, firstmilekm: json['firstmilekm'] as int?, firstmilecharges: (json['firstmilecharges'] as num?)?.toDouble(), lastmilecharges: (json['lastmilecharges'] as num?)?.toDouble(), ridercharges: (json['ridercharges'] as num?)?.toDouble(), kms: json['kms'] as String?, actualkms: json['actualkms'] as String?, paymenttype: json['paymenttype'] as int?, tenantname: json['tenantname'] as String?, tenantcontactno: json['tenantcontactno'] as String?, tenanttoken: json['tenanttoken'] as String?, tenantsuburb: json['tenantsuburb'] as String?, tenantcity: json['tenantcity'] as String?, locationname: json['locationname'] as String?, locationcontactno: json['locationcontactno'] as String?, locationsuburb: json['locationsuburb'] as String?, ridername: json['ridername'] as String?, userfcmtoken: json['userfcmtoken'] as String?, queueid: json['queueid'] as int?, smsdelivery: json['smsdelivery'] as int?, startStatus: json['startStatus'] as bool? ?? false, ); } Map toJson() { final Map data = {}; data['deliveryid'] = deliveryid; data['orderheaderid'] = orderheaderid; data['applocationid'] = applocationid; data['configid'] = configid; data['partnerid'] = partnerid; data['tenantid'] = tenantid; data['moduleid'] = moduleid; data['locationid'] = locationid; data['categoryid'] = categoryid; data['userid'] = userid; data['subcategoryid'] = subcategoryid; data['orderid'] = orderid; data['deliverydate'] = deliverydate; data['orderstatus'] = orderstatus; data['assigntime'] = assigntime; data['starttime'] = starttime; data['arrivaltime'] = arrivaltime; data['pickuptime'] = pickuptime; data['deliverytime'] = deliverytime; data['canceltime'] = canceltime; data['itemcount'] = itemcount; data['orderamount'] = orderamount; data['customerid'] = customerid; data['pickupcustomer'] = pickupcustomer; data['pickupcontactno'] = pickupcontactno; data['Pickupaddress'] = pickupaddress; data['pickuplocation'] = pickuplocation; data['pickuplocationid'] = pickuplocationid; data['pickuplat'] = pickuplat; data['pickuplon'] = pickuplon; data['deliverycustomerid'] = deliverycustomerid; data['deliverylocationid'] = deliverylocationid; data['deliverycustomer'] = deliverycustomer; data['deliverycontactno'] = deliverycontactno; data['deliveryaddress'] = deliveryaddress; data['deliverylocation'] = deliverylocation; data['droplat'] = droplat; data['droplon'] = droplon; data['deliverylat'] = deliverylat; data['deliverylong'] = deliverylong; data['deliverycharges'] = deliverycharges; data['deliveryamt'] = deliveryamt; data['deliverytype'] = deliverytype; data['notes'] = notes; data['ordernotes'] = ordernotes; data['riderslat'] = riderslat; data['riderslon'] = riderslon; data['firstmilekm'] = firstmilekm; data['firstmilecharges'] = firstmilecharges; data['lastmilecharges'] = lastmilecharges; data['ridercharges'] = ridercharges; data['kms'] = kms; data['actualkms'] = actualkms; data['paymenttype'] = paymenttype; data['tenantname'] = tenantname; data['tenantcontactno'] = tenantcontactno; data['tenanttoken'] = tenanttoken; data['tenantsuburb'] = tenantsuburb; data['tenantcity'] = tenantcity; data['locationname'] = locationname; data['locationcontactno'] = locationcontactno; data['locationsuburb'] = locationsuburb; data['ridername'] = ridername; data['userfcmtoken'] = userfcmtoken; data['queueid'] = queueid; data['smsdelivery'] = smsdelivery; data['startStatus'] = startStatus; return data; } }