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

62 line
1.7 KiB

  1. class EmptyPageModel {
  2. String appBarName;
  3. String appBarNameColor;
  4. String appBarBgColor;
  5. String bgColor;
  6. String bgImg;
  7. String contentText;
  8. String contentTextColor;
  9. String btnColor1;
  10. String btnColor2;
  11. String btnText;
  12. String btnTextColor;
  13. String btnType;
  14. EmptyPageModel({
  15. this.appBarName,
  16. this.appBarNameColor,
  17. this.appBarBgColor,
  18. this.bgColor,
  19. this.bgImg,
  20. this.contentText,
  21. this.contentTextColor,
  22. this.btnColor1,
  23. this.btnColor2,
  24. this.btnText,
  25. this.btnTextColor,
  26. this.btnType,
  27. });
  28. EmptyPageModel.fromJson(Map<String, dynamic> json) {
  29. appBarName = json['app_bar_name'];
  30. appBarNameColor = json['app_bar_name_color'];
  31. appBarBgColor = json['app_bar_bg_color'];
  32. bgColor = json['bg_color'];
  33. bgImg = json['bg_img'];
  34. contentText = json['content_text'];
  35. contentTextColor = json['content_text_color'];
  36. btnColor1 = json['btn_color1'];
  37. btnColor2 = json['btn_color2'];
  38. btnText = json['btn_text'];
  39. btnTextColor = json['btn_text_color'];
  40. btnType = json['btn_type'];
  41. }
  42. Map<String, dynamic> toJson() {
  43. final Map<String, dynamic> data = new Map<String, dynamic>();
  44. data['app_bar_name'] = this.appBarName;
  45. data['app_bar_name_color'] = this.appBarNameColor;
  46. data['app_bar_bg_color'] = this.appBarBgColor;
  47. data['bg_color'] = this.bgColor;
  48. data['bg_img'] = this.bgImg;
  49. data['content_text'] = this.contentText;
  50. data['content_text_color'] = this.contentTextColor;
  51. data['btn_color1'] = this.btnColor1;
  52. data['btn_color2'] = this.btnColor2;
  53. data['btn_text'] = this.btnText;
  54. data['btn_text_color'] = this.btnTextColor;
  55. data['btn_type'] = this.btnType;
  56. return data;
  57. }
  58. }