class GetLocationByTenantId {
  int? code;
  List<Details>? details;
  String? message;
  bool? status;

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

  GetLocationByTenantId.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['details'] != null) {
      details = <Details>[];
      json['details'].forEach((v) {
        details!.add(new Details.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 Details {
  int? locationid;
  int? applocationid;
  int? tenantid;
  int?moduleid;
  String? locationname;
  String? locationemail;
  String? locationcontact;
  String? locationlatitude;
  String? locationlong;
  String? locationaddress;
  String? locationsuburb;
  String? locationcity;
  String? locationstate;
  String? locationpostcode;
  String? opentime;
  String? closetime;
  int? partnerid;
  int? deliveryradius;
  int? deliverymins;
  int? cancelsecs;

  Details(
      {this.locationid,
      this.applocationid,
        this.tenantid,
        this.moduleid,
        this.locationname,
        this.locationemail,
        this.locationcontact,
        this.locationlatitude,
        this.locationlong,
        this.locationaddress,
        this.locationsuburb,
        this.locationcity,
        this.locationstate,
        this.locationpostcode,
        this.opentime,
        this.closetime,
        this.partnerid,
        this.deliveryradius,
        this.deliverymins,
        this.cancelsecs});

  Details.fromJson(Map<String, dynamic> json) {
    locationid = json['locationid'];
    applocationid = json['applocationid'];
    tenantid = json['tenantid'];
    moduleid = json['moduleid'];
    locationname = json['locationname'];
    locationemail = json['locationemail'];
    locationcontact = json['locationcontact'];
    locationlatitude = json['locationlatitude'];
    locationlong = json['locationlong'];
    locationaddress = json['locationaddress'];
    locationsuburb = json['locationsuburb'];
    locationcity = json['locationcity'];
    locationstate = json['locationstate'];
    locationpostcode = json['locationpostcode'];
    opentime = json['opentime'];
    closetime = json['closetime'];
    partnerid = json['partnerid'];
    deliveryradius = json['deliveryradius'];
    deliverymins = json['deliverymins'];
    cancelsecs = json['cancelsecs'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['locationid'] = this.locationid;
    data['applocationid'] = this.applocationid;
    data['tenantid'] = this.tenantid;
    data['moduleid'] = this.moduleid;
    data['locationname'] = this.locationname;
    data['locationemail'] = this.locationemail;
    data['locationcontact'] = this.locationcontact;
    data['locationlatitude'] = this.locationlatitude;
    data['locationlong'] = this.locationlong;
    data['locationaddress'] = this.locationaddress;
    data['locationsuburb'] = this.locationsuburb;
    data['locationcity'] = this.locationcity;
    data['locationstate'] = this.locationstate;
    data['locationpostcode'] = this.locationpostcode;
    data['opentime'] = this.opentime;
    data['closetime'] = this.closetime;
    data['partnerid'] = this.partnerid;
    data['deliveryradius'] = this.deliveryradius;
    data['deliverymins'] = this.deliverymins;
    data['cancelsecs'] = this.cancelsecs;
    return data;
  }
}
