class CreateCustomerResponse {
  int? code;
  Details? details;
  String? message;
  bool? status;

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

  CreateCustomerResponse.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    details =
    json['details'] != null ? new Details.fromJson(json['details']) : null;
    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!.toJson();
    }
    data['message'] = this.message;
    data['status'] = this.status;
    return data;
  }
}

class Details {
  int? customerid;
  String? firstname;
  String? lastname;
  String? contactno;
  String? email;
  int? deliverylocationid;
  String? address;
  String? suburb;
  String? city;
  String? state;
  String? landmark;
  String? doorno;
  String? postcode;
  String? latitude;
  String? longitude;
  int? applocationid;
  int? tenantlocationid;
  int? status;

  Details(
      {this.customerid,
        this.firstname,
        this.lastname,
        this.contactno,
        this.email,
        this.deliverylocationid,
        this.address,
        this.suburb,
        this.city,
        this.state,
        this.landmark,
        this.doorno,
        this.postcode,
        this.latitude,
        this.longitude,
        this.applocationid,
        this.tenantlocationid,
        this.status});

  Details.fromJson(Map<String, dynamic> json) {
    customerid = json['customerid'];
    firstname = json['firstname'];
    lastname = json['lastname'];
    contactno = json['contactno'];
    email = json['email'];
    deliverylocationid = json['deliverylocationid'];
    address = json['address'];
    suburb = json['suburb'];
    city = json['city'];
    state = json['state'];
    landmark = json['landmark'];
    doorno = json['doorno'];
    postcode = json['postcode'];
    latitude = json['latitude'];
    longitude = json['longitude'];
    applocationid = json['applocationid'];
    tenantlocationid = json['tenantlocationid'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['customerid'] = this.customerid;
    data['firstname'] = this.firstname;
    data['lastname'] = this.lastname;
    data['contactno'] = this.contactno;
    data['email'] = this.email;
    data['deliverylocationid'] = this.deliverylocationid;
    data['address'] = this.address;
    data['suburb'] = this.suburb;
    data['city'] = this.city;
    data['state'] = this.state;
    data['landmark'] = this.landmark;
    data['doorno'] = this.doorno;
    data['postcode'] = this.postcode;
    data['latitude'] = this.latitude;
    data['longitude'] = this.longitude;
    data['applocationid'] = this.applocationid;
    data['tenantlocationid'] = this.tenantlocationid;
    data['status'] = this.status;
    return data;
  }
}
