class GetPartnersInfo {
  int? code;
  List<PartnerInfoDetails>? details;
  String? message;
  bool? status;

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

  GetPartnersInfo.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    if (json['details'] != null) {
      details = <PartnerInfoDetails>[];
      json['details'].forEach((v) {
        details!.add(new PartnerInfoDetails.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 PartnerInfoDetails {
  int? partnerid;
  int? partnertypeid;
  int? applocationid;
  String? partnername;
  String? registrationno;
  String? primartcontact;
  String? primaryemail;
  String? contactno;
  int? bizcategoryid;
  int? bizsubcategoryid;
  String? address;
  String? suburb;
  String? state;
  String? city;
  String? postcode;
  String? partnerinfo;
  String? partnerimage;

  PartnerInfoDetails(
      {this.partnerid,
        this.partnertypeid,
        this.applocationid,
        this.partnername,
        this.registrationno,
        this.primartcontact,
        this.primaryemail,
        this.contactno,
        this.bizcategoryid,
        this.bizsubcategoryid,
        this.address,
        this.suburb,
        this.state,
        this.city,
        this.postcode,
        this.partnerinfo,
        this.partnerimage});

  PartnerInfoDetails.fromJson(Map<String, dynamic> json) {
    partnerid = json['partnerid'];
    partnertypeid = json['partnertypeid'];
    applocationid = json['applocationid'];
    partnername = json['partnername'];
    registrationno = json['registrationno'];
    primartcontact = json['primartcontact'];
    primaryemail = json['primaryemail'];
    contactno = json['contactno'];
    bizcategoryid = json['bizcategoryid'];
    bizsubcategoryid = json['bizsubcategoryid'];
    address = json['address'];
    suburb = json['suburb'];
    state = json['state'];
    city = json['city'];
    postcode = json['postcode'];
    partnerinfo = json['partnerinfo'];
    partnerimage = json['partnerimage'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['partnerid'] = this.partnerid;
    data['partnertypeid'] = this.partnertypeid;
    data['applocationid'] = this.applocationid;
    data['partnername'] = this.partnername;
    data['registrationno'] = this.registrationno;
    data['primartcontact'] = this.primartcontact;
    data['primaryemail'] = this.primaryemail;
    data['contactno'] = this.contactno;
    data['bizcategoryid'] = this.bizcategoryid;
    data['bizsubcategoryid'] = this.bizsubcategoryid;
    data['address'] = this.address;
    data['suburb'] = this.suburb;
    data['state'] = this.state;
    data['city'] = this.city;
    data['postcode'] = this.postcode;
    data['partnerinfo'] = this.partnerinfo;
    data['partnerimage'] = this.partnerimage;
    return data;
  }
}
