class UpdateDataDiriModel {
  UpdateDataDiriModel({
    this.status,
    this.error,
    this.messages,
  });

  int? status;
  bool? error;
  dynamic messages;

  factory UpdateDataDiriModel.fromJson(Map<String, dynamic> json) => UpdateDataDiriModel(
    status: json["status"],
    error: json["error"],
    messages: json["status"] != 200
                ? MessagesOfUpdateDataDiriModel.fromJson(json["data"]["message"])
                : json["data"]["messages"],
  );
}

class MessagesOfUpdateDataDiriModel {
  MessagesOfUpdateDataDiriModel({
    this.fullname,
    this.phone,
    this.datebirth,
    this.email,
    this.gender,
  });

  String? fullname;
  String? phone;
  String? datebirth;
  String? email;
  String? gender;

  factory MessagesOfUpdateDataDiriModel.fromJson(Map<String, dynamic> json) => MessagesOfUpdateDataDiriModel(
    fullname: json["full_name"],
    phone: json["phone"],
    datebirth: json["datebirth"],
    email: json["email"],
    gender: json["jenis_kel"],
  );
}