class GetDeliveries {
  int? code;
  List<DeliveriesDetails>? details;
  String? message;
  bool? status;

  GetDeliveries({this.code, this.details, this.message, this.status});

  GetDeliveries.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['details'] != null) {
      details = <DeliveriesDetails>[];
      json['details'].forEach((v) {
        details!.add(new DeliveriesDetails.fromJson(v));
      });
    }
    message = json['message'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    if (this.details != null) {
      data['details'] = this.details!.map((v) => v.toJson()).toList();
    }
    data['message'] = this.message;
    data['status'] = this.status;
    return data;
  }
}

class DeliveriesDetails {
  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? starttime;
  String? arrivaltime;
  String? pickuptime;
  String? deliverytime;
  String? canceltime;
  int? itemcount;
  int? orderamount;
  int? customerid;
  String? pickupcustomer;
  String? pickupcontactno;
  String? pickupaddress;
  String? pickuplocation;
  String? pickuplat;
  String? pickuplon;
  int? deliverycustomerid;
  int? deliverylocationid;
  String? deliverycustomer;
  String? deliverycontactno;
  String? deliveryaddress;
  String? deliverylocation;
  String? droplat;
  String? droplon;
  String? deliverylat;
  String? deliverylong;
  int? deliverycharges;
  int? deliveryamt;
  String? notes;
  String? ordernotes;
  String? riderslat;
  String? riderslon;
  int? firstmilekm;
  int? firstmilecharges;
  int? lastmilecharges;
  int? 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;
  String? ridercontact;

  DeliveriesDetails(
      {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.starttime,
        this.arrivaltime,
        this.pickuptime,
        this.deliverytime,
        this.canceltime,
        this.itemcount,
        this.orderamount,
        this.customerid,
        this.pickupcustomer,
        this.pickupcontactno,
        this.pickupaddress,
        this.pickuplocation,
        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.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.ridercontact,
      });

  DeliveriesDetails.fromJson(Map<String, dynamic> json) {
    deliveryid = json['deliveryid'];
    orderheaderid = json['orderheaderid'];
    applocationid = json['applocationid'];
    configid = json['configid'];
    partnerid = json['partnerid'];
    tenantid = json['tenantid'];
    moduleid = json['moduleid'];
    locationid = json['locationid'];
    categoryid = json['categoryid'];
    userid = json['userid'];
    subcategoryid = json['subcategoryid'];
    orderid = json['orderid'];
    deliverydate = json['deliverydate'];
    orderstatus = json['orderstatus'];
    starttime = json['starttime'];
    arrivaltime = json['arrivaltime'];
    pickuptime = json['pickuptime'];
    deliverytime = json['deliverytime'];
    canceltime = json['canceltime'];
    itemcount = json['itemcount'];
    orderamount = json['orderamount'];
    customerid = json['customerid'];
    pickupcustomer = json['pickupcustomer'];
    pickupcontactno = json['pickupcontactno'];
    pickupaddress = json['Pickupaddress'];
    pickuplocation = json['pickuplocation'];
    pickuplat = json['pickuplat'];
    pickuplon = json['pickuplon'];
    deliverycustomerid = json['deliverycustomerid'];
    deliverylocationid = json['deliverylocationid'];
    deliverycustomer = json['deliverycustomer'];
    deliverycontactno = json['deliverycontactno'];
    deliveryaddress = json['deliveryaddress'];
    deliverylocation = json['deliverylocation'];
    droplat = json['droplat'];
    droplon = json['droplon'];
    deliverylat = json['deliverylat'];
    deliverylong = json['deliverylong'];
    deliverycharges = json['deliverycharges'];
    deliveryamt = json['deliveryamt'];
    notes = json['notes'];
    ordernotes = json['ordernotes'];
    riderslat = json['riderslat'];
    riderslon = json['riderslon'];
    firstmilekm = json['firstmilekm'];
    firstmilecharges = json['firstmilecharges'];
    lastmilecharges = json['lastmilecharges'];
    ridercharges = json['ridercharges'];
    kms = json['kms'];
    actualkms = json['actualkms'];
    paymenttype = json['paymenttype'];
    tenantname = json['tenantname'];
    tenantcontactno = json['tenantcontactno'];
    tenanttoken = json['tenanttoken'];
    tenantsuburb = json['tenantsuburb'];
    tenantcity = json['tenantcity'];
    locationname = json['locationname'];
    locationcontactno = json['locationcontactno'];
    locationsuburb = json['locationsuburb'];
    ridername = json['ridername'];
    userfcmtoken = json['userfcmtoken'];
    queueid = json['queueid'];
    ridercontact = json['ridercontact'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deliveryid'] = this.deliveryid;
    data['orderheaderid'] = this.orderheaderid;
    data['applocationid'] = this.applocationid;
    data['configid'] = this.configid;
    data['partnerid'] = this.partnerid;
    data['tenantid'] = this.tenantid;
    data['moduleid'] = this.moduleid;
    data['locationid'] = this.locationid;
    data['categoryid'] = this.categoryid;
    data['userid'] = this.userid;
    data['subcategoryid'] = this.subcategoryid;
    data['orderid'] = this.orderid;
    data['deliverydate'] = this.deliverydate;
    data['orderstatus'] = this.orderstatus;
    data['starttime'] = this.starttime;
    data['arrivaltime'] = this.arrivaltime;
    data['pickuptime'] = this.pickuptime;
    data['deliverytime'] = this.deliverytime;
    data['canceltime'] = this.canceltime;
    data['itemcount'] = this.itemcount;
    data['orderamount'] = this.orderamount;
    data['customerid'] = this.customerid;
    data['pickupcustomer'] = this.pickupcustomer;
    data['pickupcontactno'] = this.pickupcontactno;
    data['Pickupaddress'] = this.pickupaddress;
    data['pickuplocation'] = this.pickuplocation;
    data['pickuplat'] = this.pickuplat;
    data['pickuplon'] = this.pickuplon;
    data['deliverycustomerid'] = this.deliverycustomerid;
    data['deliverylocationid'] = this.deliverylocationid;
    data['deliverycustomer'] = this.deliverycustomer;
    data['deliverycontactno'] = this.deliverycontactno;
    data['deliveryaddress'] = this.deliveryaddress;
    data['deliverylocation'] = this.deliverylocation;
    data['droplat'] = this.droplat;
    data['droplon'] = this.droplon;
    data['deliverylat'] = this.deliverylat;
    data['deliverylong'] = this.deliverylong;
    data['deliverycharges'] = this.deliverycharges;
    data['deliveryamt'] = this.deliveryamt;
    data['notes'] = this.notes;
    data['ordernotes'] = this.ordernotes;
    data['riderslat'] = this.riderslat;
    data['riderslon'] = this.riderslon;
    data['firstmilekm'] = this.firstmilekm;
    data['firstmilecharges'] = this.firstmilecharges;
    data['lastmilecharges'] = this.lastmilecharges;
    data['ridercharges'] = this.ridercharges;
    data['kms'] = this.kms;
    data['actualkms'] = this.actualkms;
    data['paymenttype'] = this.paymenttype;
    data['tenantname'] = this.tenantname;
    data['tenantcontactno'] = this.tenantcontactno;
    data['tenanttoken'] = this.tenanttoken;
    data['tenantsuburb'] = this.tenantsuburb;
    data['tenantcity'] = this.tenantcity;
    data['locationname'] = this.locationname;
    data['locationcontactno'] = this.locationcontactno;
    data['locationsuburb'] = this.locationsuburb;
    data['ridername'] = this.ridername;
    data['userfcmtoken'] = this.userfcmtoken;
    data['queueid'] = this.queueid;
    data['ridercontact'] = this.ridercontact;
    return data;
  }
}

