class UserModelResponse {
  int? code;
  UserDetails? details;
  String? message;
  bool? status;

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

  UserModelResponse.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    details =
    json['details'] != null ? new UserDetails.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 UserDetails {
  int? userid;
  String? authname;
  int? configid;
  int? authmode;
  int? roleid;
  String? firstname;
  String? lastname;
  String? password;
  String? email;
  String? contactno;
  String? address;
  String? suburb;
  String? city;
  String? state;
  String? postcode;
  String? userfcmtoken;
  int? pin;
  int? partnerid;
  int? tenantid;
  String? fullname;
  String? tenantname;
  String? tenantaddress;
  String? tenantcity;
  String? tenantpostcode;
  String? tenantlat;
  String? tenantlong;
  int? locationid;
  String? locationname;
  int? applocationid;

  UserDetails(
      {this.userid,
        this.authname,
        this.configid,
        this.authmode,
        this.roleid,
        this.firstname,
        this.lastname,
        this.password,
        this.email,
        this.contactno,
        this.address,
        this.suburb,
        this.city,
        this.state,
        this.postcode,
        this.userfcmtoken,
        this.pin,
        this.partnerid,
        this.tenantid,
        this.fullname,
        this.tenantname,
        this.tenantaddress,
        this.tenantcity,
        this.tenantpostcode,
        this.tenantlat,
        this.tenantlong,
        this.locationid,
        this.locationname,
        this.applocationid});

  UserDetails.fromJson(Map<String, dynamic> json) {
    userid = json['userid'];
    authname = json['authname'];
    configid = json['configid'];
    authmode = json['authmode'];
    roleid = json['roleid'];
    firstname = json['firstname'];
    lastname = json['lastname'];
    password = json['password'];
    email = json['email'];
    contactno = json['contactno'];
    address = json['address'];
    suburb = json['suburb'];
    city = json['city'];
    state = json['state'];
    postcode = json['postcode'];
    userfcmtoken = json['userfcmtoken'];
    pin = json['pin'];
    partnerid = json['partnerid'];
    tenantid = json['tenantid'];
    fullname = json['fullname'];
    tenantname = json['tenantname'];
    tenantaddress = json['tenantaddress'];
    tenantcity = json['tenantcity'];
    tenantpostcode = json['tenantpostcode'];
    tenantlat = json['tenantlat'];
    tenantlong = json['tenantlong'];
    locationid = json['locationid'];
    locationname = json['locationname'];
    applocationid = json['applocationid'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['userid'] = this.userid;
    data['authname'] = this.authname;
    data['configid'] = this.configid;
    data['authmode'] = this.authmode;
    data['roleid'] = this.roleid;
    data['firstname'] = this.firstname;
    data['lastname'] = this.lastname;
    data['password'] = this.password;
    data['email'] = this.email;
    data['contactno'] = this.contactno;
    data['address'] = this.address;
    data['suburb'] = this.suburb;
    data['city'] = this.city;
    data['state'] = this.state;
    data['postcode'] = this.postcode;
    data['userfcmtoken'] = this.userfcmtoken;
    data['pin'] = this.pin;
    data['partnerid'] = this.partnerid;
    data['tenantid'] = this.tenantid;
    data['fullname'] = this.fullname;
    data['tenantname'] = this.tenantname;
    data['tenantaddress'] = this.tenantaddress;
    data['tenantcity'] = this.tenantcity;
    data['tenantpostcode'] = this.tenantpostcode;
    data['tenantlat'] = this.tenantlat;
    data['tenantlong'] = this.tenantlong;
    data['locationid'] = this.locationid;
    data['locationname'] = this.locationname;
    data['applocationid'] = this.applocationid;
    return data;
  }
}
