class User {
  String id;
  String firstname;
  String lastname;
  String avatar;
  String idCard;
  String mobile;
  String ca;
  String customerName;
  String customerAddress;

  User({
    this.id,
    this.firstname,
    this.lastname,
    this.avatar,
    this.idCard,
    this.mobile,
    this.ca,
    this.customerName,
    this.customerAddress,
  });

  User.fromJson(Map<String, dynamic> json) {
    id = json['Id'];
    firstname = json['firstname'];
    lastname = json['lastname'];
    avatar = json['avatar'];
    idCard = json['IDCard'];
    mobile = json['Mobile'];
    ca = json['CA'];
    customerName = json['CustomerName'];
    customerAddress = json['CustomerAddress'];
  }
}
