class ProfileModel {
  String? status;
  int? statusCode;
  String? message;
  Data? data;

  ProfileModel({this.status, this.statusCode, this.message, this.data});

  ProfileModel.fromJson(Map<String, dynamic> json) {
    status = json['status'];
    statusCode = json['status_code'];
    message = json['message'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['status'] = this.status;
    data['status_code'] = this.statusCode;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class Data {
  int? id;
  int? principalTypeXid;
  int? principalSourceXid;
  String? userName;
  Null? gender;
  String? dateOfBirth;
  String? phoneNumber;
  Null? otherPhoneNumber;
  String? emailAddress;
  Null? addressLine1;
  Null? addressLine2;
  String? city;
  Null? postCode;
  String? profilePhoto;
  Null? referralCode;
  Null? description;
  int? whatsappUpdate;
  int? profileUpdated;
  int? riskProfileUpdated;
  int? kycUpdated;
  int? securedAccess;
  String? playerId;
  int? notificationAlert;
  String? isActive;

  Data(
      {this.id,
      this.principalTypeXid,
      this.principalSourceXid,
      this.userName,
      this.gender,
      this.dateOfBirth,
      this.phoneNumber,
      this.otherPhoneNumber,
      this.emailAddress,
      this.addressLine1,
      this.addressLine2,
      this.city,
      this.postCode,
      this.profilePhoto,
      this.referralCode,
      this.description,
      this.whatsappUpdate,
      this.profileUpdated,
      this.riskProfileUpdated,
      this.kycUpdated,
      this.securedAccess,
      this.playerId,
      this.notificationAlert,
      this.isActive});

  Data.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    principalTypeXid = json['principal_type_xid'];
    principalSourceXid = json['principal_source_xid'];
    userName = json['user_name'];
    gender = json['gender'];
    dateOfBirth = json['date_of_birth'];
    phoneNumber = json['phone_number'];
    otherPhoneNumber = json['other_phone_number'];
    emailAddress = json['email_address'];
    addressLine1 = json['address_line1'];
    addressLine2 = json['address_line2'];
    city = json['city'];
    postCode = json['post_code'];
    profilePhoto = json['profile_photo'];
    referralCode = json['referral_code'];
    description = json['description'];
    whatsappUpdate = json['whatsapp_update'];
    profileUpdated = json['profile_updated'];
    riskProfileUpdated = json['risk_profile_updated'];
    kycUpdated = json['kyc_updated'];
    securedAccess = json['secured_access'];
    playerId = json['player_id'];
    notificationAlert = json['notification_alert'];
    isActive = json['is_active'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['principal_type_xid'] = this.principalTypeXid;
    data['principal_source_xid'] = this.principalSourceXid;
    data['user_name'] = this.userName;
    data['gender'] = this.gender;
    data['date_of_birth'] = this.dateOfBirth;
    data['phone_number'] = this.phoneNumber;
    data['other_phone_number'] = this.otherPhoneNumber;
    data['email_address'] = this.emailAddress;
    data['address_line1'] = this.addressLine1;
    data['address_line2'] = this.addressLine2;
    data['city'] = this.city;
    data['post_code'] = this.postCode;
    data['profile_photo'] = this.profilePhoto;
    data['referral_code'] = this.referralCode;
    data['description'] = this.description;
    data['whatsapp_update'] = this.whatsappUpdate;
    data['profile_updated'] = this.profileUpdated;
    data['risk_profile_updated'] = this.riskProfileUpdated;
    data['kyc_updated'] = this.kycUpdated;
    data['secured_access'] = this.securedAccess;
    data['player_id'] = this.playerId;
    data['notification_alert'] = this.notificationAlert;
    data['is_active'] = this.isActive;
    return data;
  }
}
