class RegisterModel {
  String id;
  String firstname;
  String lastname;
  String idCard;
  String phone;
  bool isSuccess;
  String message;
  String authenKey;

  RegisterModel({
    this.id,
    this.firstname,
    this.lastname,
    this.idCard,
    this.phone,
    this.isSuccess,
    this.message,
    this.authenKey,
  });

  factory RegisterModel.fromJson(Map<String, dynamic> json) => RegisterModel(
        id: json["Id"],
        firstname: json["firstName"],
        lastname: json["lastName"],
        idCard: json["idCard"],
        phone: json["Mobile"],
        isSuccess: json["Regisflag"],
        message: json["Message"],
        authenKey: json["Authenkey"],
      );

  Map<String, dynamic> toJson() => {
        "Id": id,
        "firstName": firstname,
        "lastName": lastname,
        "idCard": idCard,
        "Mobile": phone,
        "Regisflag": isSuccess,
        "Message": message,
        "Authenkey": authenKey,
      };
}
