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.

129 lines
3.3KB

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