LoginModel constructor

LoginModel({
  1. int id = -1,
  2. int hidden_phone = 0,
  3. int hidden_email = 0,
  4. int hide_toolbar = 0,
  5. int auto_play_video = 1,
  6. int points = 0,
  7. int password_changed = 0,
  8. String name = '',
  9. String birthdate = '',
  10. String gender = '',
  11. String email = '',
  12. String website = '',
  13. String phone = '',
  14. String address = '',
  15. String token_user = '',
  16. String token2_user = '',
  17. String province_id = '',
  18. String province_name = '',
  19. String district_id = '',
  20. String district_name = '',
  21. String user_type = '',
  22. String image = '',
  23. String background_image = '',
  24. String member_rate = '',
  25. String user_level = '',
  26. String manager_type = 'member',
  27. ItemListModel? has_tash_list,
  28. ShopModel? shop,
  29. String partner_token = '',
  30. String partner_type = '',
  31. String role_type = '',
})

Implementation

LoginModel({this.id = -1,
      this.hidden_phone = 0,
      this.hidden_email = 0,
      this.hide_toolbar = 0,
      this.auto_play_video = 1,
      this.points = 0,
      this.password_changed = 0,
      this.name = '',
      this.birthdate = '',
      this.gender = '',
      this.email = '',
      this.website = '',
      this.phone = '',
      this.address = '',
      this.token_user = '',
      this.token2_user = '',
      this.province_id = '',
      this.province_name = '',
      this.district_id = '',
      this.district_name = '',
      this.user_type = '',
      this.image = '',
      this.background_image = '',
      this.member_rate = '',
      this.user_level = '',
      this.manager_type = 'member',
      this.has_tash_list,
      this.shop,
      this.partner_token = '',
      this.partner_type= '',
      this.role_type = ''}) {
  has_tash_list = ItemListModel();
  shop = ShopModel();
}