基础库
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.
 
 
 
 
 

51 lines
1.3 KiB

  1. import 'package:zhiying_comm/models/base/skip_model.dart';
  2. class BaseTabModel extends SkipModel {
  3. String name;
  4. String isShow;
  5. String icon;
  6. String chooseColor;
  7. String chooseIcon;
  8. String cateTag;
  9. String bgColor;
  10. String fontColor;
  11. BaseTabModel(
  12. {this.name,
  13. this.isShow,
  14. this.icon,
  15. this.chooseColor,
  16. this.chooseIcon,
  17. this.cateTag,
  18. this.bgColor,
  19. this.fontColor});
  20. BaseTabModel.fromJson(Map<String, dynamic> json) {
  21. super.fromJson(json);
  22. name = json['name'];
  23. isShow = json['is_show'];
  24. icon = json['icon'];
  25. chooseColor = json['choose_color'];
  26. chooseIcon = json['choose_icon'];
  27. cateTag = json['cate_tag'];
  28. skipIdentifier = json['skip_identifier'];
  29. requiredLogin = json['required_login']?.toString();
  30. requiredTaobaoAuth = json['required_taobao_auth'];
  31. bgColor = json['bg_color'];
  32. fontColor = json['font_color'];
  33. }
  34. Map<String, dynamic> toJson() {
  35. final Map<String, dynamic> data = super.toJson();
  36. data['name'] = this.name;
  37. data['is_show'] = this.isShow;
  38. data['icon'] = this.icon;
  39. data['choose_color'] = this.chooseColor;
  40. data['choose_icon'] = this.chooseIcon;
  41. data['cate_tag'] = this.cateTag;
  42. data['bg_color'] = this.bgColor;
  43. data['font_color'] = this.fontColor;
  44. return data;
  45. }
  46. }