class UserInfo {
  late final userEmail;
  late final fname;
  late final lname;
  late final birthdate;
  late final phoneNumber;
  late final userName;

  UserInfo(
      {required this.userName,
      required this.userEmail,
      required this.fname,
      required this.lname,
      required this.birthdate,
      required this.phoneNumber});

  factory UserInfo.fromJson(Map<String, dynamic> json) {
    return UserInfo(
        userName: json['username'],
        userEmail: json['email'],
        fname: json['firstName'],
        lname: json['lastName'],
        birthdate: json['birthDate'],
        phoneNumber: json['phoneNumber']);
  }
}
