You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
2.8KB

  1. class Account {
  2. int? id;
  3. String? login;
  4. String? password;
  5. String? fullName;
  6. String? phone;
  7. String? birthDay;
  8. int? gender;
  9. int? roleId;
  10. String? roleName;
  11. int? customerId;
  12. String? customerName;
  13. int? addressId;
  14. String? address;
  15. int? countryId;
  16. String? countryName;
  17. int? cityId;
  18. String? cityName;
  19. int? districtId;
  20. String? districtName;
  21. int? wardId;
  22. String? wardName;
  23. String? fcmToken;
  24. String? email;
  25. String? imageUrl;
  26. bool? activated;
  27. Account({
  28. this.id,
  29. this.login,
  30. this.password,
  31. this.fullName,
  32. this.phone,
  33. this.birthDay,
  34. this.gender,
  35. this.roleId,
  36. this.roleName,
  37. this.customerId,
  38. this.customerName,
  39. this.addressId,
  40. this.address,
  41. this.countryId,
  42. this.countryName,
  43. this.cityId,
  44. this.cityName,
  45. this.districtId,
  46. this.districtName,
  47. this.wardId,
  48. this.wardName,
  49. this.fcmToken,
  50. this.email,
  51. this.imageUrl,
  52. this.activated,
  53. });
  54. Account.fromJson(Map<String, dynamic> json) {
  55. id = json['id'];
  56. login = json['login'];
  57. password = json['password'];
  58. fullName = json['fullName'];
  59. phone = json['phone'];
  60. birthDay = json['birthDay'];
  61. gender = json['gender'];
  62. roleId = json['roleId'];
  63. roleName = json['roleName'];
  64. customerId = json['customerId'];
  65. customerName = json['customerName'];
  66. addressId = json['addressId'];
  67. address = json['address'];
  68. countryId = json['countryId'];
  69. countryName = json['countryName'];
  70. cityId = json['cityId'];
  71. cityName = json['cityName'];
  72. districtId = json['districtId'];
  73. districtName = json['districtName'];
  74. wardId = json['wardId'];
  75. wardName = json['wardName'];
  76. fcmToken = json['fcmToken'];
  77. email = json['email'];
  78. imageUrl = json['imageUrl'];
  79. activated = json['activated'];
  80. }
  81. Map<String, dynamic> toJson() {
  82. final Map<String, dynamic> data = new Map<String, dynamic>();
  83. data['id'] = this.id;
  84. data['login'] = this.login;
  85. data['password'] = this.password;
  86. data['fullName'] = this.fullName;
  87. data['phone'] = this.phone;
  88. data['birthDay'] = this.birthDay;
  89. data['gender'] = this.gender;
  90. data['roleId'] = this.roleId;
  91. data['roleName'] = this.roleName;
  92. data['customerId'] = this.customerId;
  93. data['customerName'] = this.customerName;
  94. data['addressId'] = this.addressId;
  95. data['address'] = this.address;
  96. data['countryId'] = this.countryId;
  97. data['countryName'] = this.countryName;
  98. data['cityId'] = this.cityId;
  99. data['cityName'] = this.cityName;
  100. data['districtId'] = this.districtId;
  101. data['districtName'] = this.districtName;
  102. data['wardId'] = this.wardId;
  103. data['wardName'] = this.wardName;
  104. data['fcmToken'] = this.fcmToken;
  105. data['email'] = this.email;
  106. data['imageUrl'] = this.imageUrl;
  107. data['activated'] = this.activated;
  108. return data;
  109. }
  110. }