class Account { int? id; String? login; String? password; String? fullName; String? phone; String? birthDay; int? gender; 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; Account({ this.id, this.login, this.password, this.fullName, this.phone, this.birthDay, this.gender, 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, }); Account.fromJson(Map json) { id = json['id']; login = json['login']; password = json['password']; fullName = json['fullName']; phone = json['phone']; birthDay = json['birthDay']; gender = json['gender']; 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']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['login'] = this.login; data['password'] = this.password; data['fullName'] = this.fullName; data['phone'] = this.phone; data['birthDay'] = this.birthDay; data['gender'] = this.gender; 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; return data; } }