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

56 lines
1.5 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. //抖券判断是否是底部创建,默认不是
  12. bool isBottomVideo = false;
  13. BaseTabModel({this.name,
  14. this.isShow,
  15. this.icon,
  16. this.chooseColor,
  17. this.chooseIcon,
  18. this.cateTag,
  19. this.bgColor,
  20. this.fontColor,
  21. this.isBottomVideo
  22. });
  23. BaseTabModel.fromJson(Map<String, dynamic> json) {
  24. super.fromJson(json);
  25. name = json['name'];
  26. isShow = json['is_show'];
  27. icon = json['icon'];
  28. chooseColor = json['choose_color'];
  29. chooseIcon = json['choose_icon'];
  30. cateTag = json['cate_tag'];
  31. skipIdentifier = json['skip_identifier'];
  32. requiredLogin = json['required_login']?.toString();
  33. requiredTaobaoAuth = json['required_taobao_auth'];
  34. bgColor = json['bg_color'];
  35. fontColor = json['font_color'];
  36. isBottomVideo=json['is_bottom_video'];
  37. }
  38. Map<String, dynamic> toJson() {
  39. final Map<String, dynamic> data = super.toJson();
  40. data['name'] = this.name;
  41. data['is_show'] = this.isShow;
  42. data['icon'] = this.icon;
  43. data['choose_color'] = this.chooseColor;
  44. data['choose_icon'] = this.chooseIcon;
  45. data['cate_tag'] = this.cateTag;
  46. data['bg_color'] = this.bgColor;
  47. data['font_color'] = this.fontColor;
  48. data['is_bottom_video'] = this.isBottomVideo;
  49. return data;
  50. }
  51. }