class ProfileResponse {
  String? error;
  String? mobNum;
  String? name;
  String? mail;
  String? state;
  String? subLocality;
  String? address;
  String? message;
  int? sessionExists;
  String? profileUrl;

  ProfileResponse(
      {this.error,
        this.mobNum,
        this.name,
        this.mail,
        this.state,
        this.subLocality,
        this.address,
        this.message,
        this.sessionExists,
        this.profileUrl
      });

  ProfileResponse.fromJson(Map<String, dynamic> json) {
    error = json['error'];
    mobNum = json['mob_num'];
    name = json['name'];
    mail = json['mail'];
    state = json['state'];
    subLocality = json['sub_locality'];
    address = json['address'];
    message = json['message'];
    sessionExists = json['session_exists'];
    profileUrl = json['profile_url'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['error'] = this.error;
    data['mob_num'] = this.mobNum;
    data['name'] = this.name;
    data['mail'] = this.mail;
    data['state'] = this.state;
    data['sub_locality'] = this.subLocality;
    data['address'] = this.address;
    data['message'] = this.message;
    data['session_exists'] = this.sessionExists;
    data['profile_url'] = this.profileUrl;
    return data;
  }
}
