class Account {
  num? id;
  String? login;
  String? firstName;
  String? lastName;
  String? midleName;
  String? fullName;
  String? phone;
  String? address;
  String? avartar;
  num? vaiTroId;
  String? tenVaiTro;
  num? donViCanhTacId;
  String? tenDonVi;
  String? email;
  String? imageUrl;
  bool? activated;
  num? countryId;
  String? countryName;
  num? cityId;
  String? cityName;
  num? districtId;
  String? districtName;
  num? wardId;
  String? wardName;
  List<String>? authorities;

  Account(
      {this.id,
      this.login,
      this.firstName,
      this.lastName,
      this.midleName,
      this.fullName,
      this.phone,
      this.address,
      this.avartar,
      this.vaiTroId,
      this.tenVaiTro,
      this.donViCanhTacId,
      this.tenDonVi,
      this.email,
      this.imageUrl,
      this.activated,
      this.countryId,
      this.countryName,
      this.cityId,
      this.cityName,
      this.districtId,
      this.districtName,
      this.wardId,
      this.wardName,
      this.authorities});

  Account.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    login = json['login'];
    firstName = json['firstName'];
    lastName = json['lastName'];
    midleName = json['midleName'];
    fullName = json['fullName'];
    phone = json['phone'];
    address = json['address'];
    avartar = json['avartar'];
    vaiTroId = json['vaiTroId'];
    tenVaiTro = json['tenVaiTro'];
    donViCanhTacId = json['donViCanhTacId'];
    tenDonVi = json['tenDonVi'];
    email = json['email'];
    imageUrl = json['imageUrl'];
    activated = json['activated'];
    countryId = json['countryId'];
    countryName = json['countryName'];
    cityId = json['cityId'];
    cityName = json['cityName'];
    districtId = json['districtId'];
    districtName = json['districtName'];
    wardId = json['wardId'];
    wardName = json['wardName'];
    authorities = json['authorities'].cast<String>();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['login'] = this.login;
    data['firstName'] = this.firstName;
    data['lastName'] = this.lastName;
    data['midleName'] = this.midleName;
    data['fullName'] = this.fullName;
    data['phone'] = this.phone;
    data['address'] = this.address;
    data['avartar'] = this.avartar;
    data['vaiTroId'] = this.vaiTroId;
    data['tenVaiTro'] = this.tenVaiTro;
    data['donViCanhTacId'] = this.donViCanhTacId;
    data['tenDonVi'] = this.tenDonVi;
    data['email'] = this.email;
    data['imageUrl'] = this.imageUrl;
    data['activated'] = this.activated;
    data['countryId'] = this.countryId;
    data['countryName'] = this.countryName;
    data['cityId'] = this.cityId;
    data['cityName'] = this.cityName;
    data['districtId'] = this.districtId;
    data['districtName'] = this.districtName;
    data['wardId'] = this.wardId;
    data['wardName'] = this.wardName;
    data['authorities'] = this.authorities;
    return data;
  }
}
