class Account {
  int? id;
  String? login;
  String? firstName;
  String? lastName;
  String? fullName;
  String? phone;
  String? birthDay;
  String? gender;
  String? userId;
  int? roleId;
  String? roleName;
  int? customerId;
  String? customerName;
  int? addressId;
  String? address;
  int? countryId;
  String? countryName;
  int? cityId;
  String? cityName;
  int? districtId;
  String? districtName;
  int? wardId;
  String? wardName;
  String? fcmToken;
  String? email;
  String? imageUrl;
  bool? activated;
  String? langKey;
  List<String>? authorities;

  Account(
      {this.id,
      this.login,
      this.firstName,
      this.lastName,
      this.fullName,
      this.phone,
      this.birthDay,
      this.gender,
      this.userId,
      this.roleId,
      this.roleName,
      this.customerId,
      this.customerName,
      this.addressId,
      this.address,
      this.countryId,
      this.countryName,
      this.cityId,
      this.cityName,
      this.districtId,
      this.districtName,
      this.wardId,
      this.wardName,
      this.fcmToken,
      this.email,
      this.imageUrl,
      this.activated,
      this.langKey,
      this.authorities});

  Account.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    login = json['login'];
    firstName = json['firstName'];
    lastName = json['lastName'];
    fullName = json['fullName'];
    phone = json['phone'];
    birthDay = json['birthDay'];
    gender = json['gender'];
    userId = json['userId'];
    roleId = json['roleId'];
    roleName = json['roleName'];
    customerId = json['customerId'];
    customerName = json['customerName'];
    addressId = json['addressId'];
    address = json['address'];
    countryId = json['countryId'];
    countryName = json['countryName'];
    cityId = json['cityId'];
    cityName = json['cityName'];
    districtId = json['districtId'];
    districtName = json['districtName'];
    wardId = json['wardId'];
    wardName = json['wardName'];
    fcmToken = json['fcmToken'];
    email = json['email'];
    imageUrl = json['imageUrl'];
    activated = json['activated'];
    langKey = json['langKey'];
    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['fullName'] = this.fullName;
    data['phone'] = this.phone;
    data['birthDay'] = this.birthDay;
    data['gender'] = this.gender;
    data['userId'] = this.userId;
    data['roleId'] = this.roleId;
    data['roleName'] = this.roleName;
    data['customerId'] = this.customerId;
    data['customerName'] = this.customerName;
    data['addressId'] = this.addressId;
    data['address'] = this.address;
    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['fcmToken'] = this.fcmToken;
    data['email'] = this.email;
    data['imageUrl'] = this.imageUrl;
    data['activated'] = this.activated;
    data['langKey'] = this.langKey;
    data['authorities'] = this.authorities;
    return data;
  }
}
