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

195 lines
8.0 KiB

  1. class FeedbackModel {
  2. String appBarName;
  3. String appBarNameColor;
  4. String appBarBgColor;
  5. String bgColor;
  6. String feedbackBgColor;
  7. String feedbackTitle;
  8. String feedbackTypeNoSelectedBorderColor;
  9. String feedbackTypeNoSelectedTextColor;
  10. String feedbackTypeSelectedBorderColor;
  11. String feedbackTypeSelectedTextColor;
  12. String feedbackTypeSelectedBorderIcon;
  13. List<FeedbackTypes> feedbackTypes;
  14. String feedbackInputBgColor;
  15. String feedbackInputHintText;
  16. String feedbackInputHintTextColor;
  17. String feedbackInputLimitText;
  18. String feedbackInputLimitTextColor;
  19. String feedbackInputContentBgColor;
  20. String feedbackInputContentHintText;
  21. String feedbackInputContentLimitText;
  22. String feedbackInputContentHintTextColor;
  23. String feedbackInputContentLimitTextColor;
  24. String feedbackUploadImageTitle;
  25. String feedbackUploadImageSubtitle;
  26. String feedbackPostBtnText;
  27. String feedbackPostBtnBgColor;
  28. String feedbackPostBtnTextColor;
  29. String feedbackListBtnIcon;
  30. String feedbackListBtnText;
  31. String feedbackListBtnTextColor;
  32. String feedbackListBtnBgColor;
  33. String feedbackListBtnBorderColor;
  34. String requiredLogin;
  35. String requiredTaobaoAuth;
  36. String skipIdentifier;
  37. FeedbackModel(
  38. {this.appBarName,
  39. this.appBarNameColor,
  40. this.appBarBgColor,
  41. this.bgColor,
  42. this.feedbackBgColor,
  43. this.feedbackTitle,
  44. this.feedbackTypeNoSelectedBorderColor,
  45. this.feedbackTypeNoSelectedTextColor,
  46. this.feedbackTypeSelectedBorderColor,
  47. this.feedbackTypeSelectedTextColor,
  48. this.feedbackTypeSelectedBorderIcon,
  49. this.feedbackTypes,
  50. this.feedbackInputBgColor,
  51. this.feedbackInputHintText,
  52. this.feedbackInputHintTextColor,
  53. this.feedbackInputLimitText,
  54. this.feedbackInputLimitTextColor,
  55. this.feedbackInputContentBgColor,
  56. this.feedbackInputContentHintText,
  57. this.feedbackInputContentLimitText,
  58. this.feedbackInputContentHintTextColor,
  59. this.feedbackInputContentLimitTextColor,
  60. this.feedbackUploadImageTitle,
  61. this.feedbackUploadImageSubtitle,
  62. this.feedbackPostBtnText,
  63. this.feedbackPostBtnBgColor,
  64. this.feedbackPostBtnTextColor,
  65. this.feedbackListBtnIcon,
  66. this.feedbackListBtnText,
  67. this.feedbackListBtnTextColor,
  68. this.feedbackListBtnBgColor,
  69. this.feedbackListBtnBorderColor,
  70. this.requiredLogin,
  71. this.requiredTaobaoAuth,
  72. this.skipIdentifier});
  73. FeedbackModel.fromJson(Map<String, dynamic> json) {
  74. appBarName = json['app_bar_name'];
  75. appBarNameColor = json['app_bar_name_color'];
  76. appBarBgColor = json['app_bar_bg_color'];
  77. bgColor = json['bg_color'];
  78. feedbackBgColor = json['feedback_bg_color'];
  79. feedbackTitle = json['feedback_title'];
  80. feedbackTypeNoSelectedBorderColor =
  81. json['feedback_type_no_selected_border_color'];
  82. feedbackTypeNoSelectedTextColor =
  83. json['feedback_type_no_selected_text_color'];
  84. feedbackTypeSelectedBorderColor =
  85. json['feedback_type_selected_border_color'];
  86. feedbackTypeSelectedTextColor = json['feedback_type_selected_text_color'];
  87. feedbackTypeSelectedBorderIcon = json['feedback_type_selected_border_icon'];
  88. if (json['feedback_types'] != null) {
  89. feedbackTypes = new List<FeedbackTypes>();
  90. json['feedback_types'].forEach((v) {
  91. feedbackTypes.add(new FeedbackTypes.fromJson(v));
  92. });
  93. }
  94. feedbackInputBgColor = json['feedback_input_bg_color'];
  95. feedbackInputHintText = json['feedback_input_hint_text'];
  96. feedbackInputHintTextColor = json['feedback_input_hint_text_color'];
  97. feedbackInputLimitText = json['feedback_input_limit_text'];
  98. feedbackInputLimitTextColor = json['feedback_input_limit_text_color'];
  99. feedbackInputContentBgColor = json['feedback_input_content_bg_color'];
  100. feedbackInputContentHintText = json['feedback_input_content_hint_text'];
  101. feedbackInputContentLimitText = json['feedback_input_content_limit_text'];
  102. feedbackInputContentHintTextColor =
  103. json['feedback_input_content_hint_text_color'];
  104. feedbackInputContentLimitTextColor =
  105. json['feedback_input_content_limit_text_color'];
  106. feedbackUploadImageTitle = json['feedback_upload_image_title'];
  107. feedbackUploadImageSubtitle = json['feedback_upload_image_subtitle'];
  108. feedbackPostBtnText = json['feedback_post_btn_text'];
  109. feedbackPostBtnBgColor = json['feedback_post_btn_bg_color'];
  110. feedbackPostBtnTextColor = json['feedback_post_btn_text_color'];
  111. feedbackListBtnIcon = json['feedback_list_btn_icon'];
  112. feedbackListBtnText = json['feedback_list_btn_text'];
  113. feedbackListBtnTextColor = json['feedback_list_btn_text_color'];
  114. feedbackListBtnBgColor = json['feedback_list_btn_bg_color'];
  115. feedbackListBtnBorderColor = json['feedback_list_btn_border_color'];
  116. requiredLogin = json['required_login'];
  117. requiredTaobaoAuth = json['required_taobao_auth'];
  118. skipIdentifier = json['skip_identifier'];
  119. }
  120. Map<String, dynamic> toJson() {
  121. final Map<String, dynamic> data = new Map<String, dynamic>();
  122. data['app_bar_name'] = this.appBarName;
  123. data['app_bar_name_color'] = this.appBarNameColor;
  124. data['app_bar_bg_color'] = this.appBarBgColor;
  125. data['bg_color'] = this.bgColor;
  126. data['feedback_bg_color'] = this.feedbackBgColor;
  127. data['feedback_title'] = this.feedbackTitle;
  128. data['feedback_type_no_selected_border_color'] =
  129. this.feedbackTypeNoSelectedBorderColor;
  130. data['feedback_type_no_selected_text_color'] =
  131. this.feedbackTypeNoSelectedTextColor;
  132. data['feedback_type_selected_border_color'] =
  133. this.feedbackTypeSelectedBorderColor;
  134. data['feedback_type_selected_text_color'] =
  135. this.feedbackTypeSelectedTextColor;
  136. data['feedback_type_selected_border_icon'] =
  137. this.feedbackTypeSelectedBorderIcon;
  138. if (this.feedbackTypes != null) {
  139. data['feedback_types'] =
  140. this.feedbackTypes.map((v) => v.toJson()).toList();
  141. }
  142. data['feedback_input_bg_color'] = this.feedbackInputBgColor;
  143. data['feedback_input_hint_text'] = this.feedbackInputHintText;
  144. data['feedback_input_hint_text_color'] = this.feedbackInputHintTextColor;
  145. data['feedback_input_limit_text'] = this.feedbackInputLimitText;
  146. data['feedback_input_limit_text_color'] = this.feedbackInputLimitTextColor;
  147. data['feedback_input_content_bg_color'] = this.feedbackInputContentBgColor;
  148. data['feedback_input_content_hint_text'] =
  149. this.feedbackInputContentHintText;
  150. data['feedback_input_content_limit_text'] =
  151. this.feedbackInputContentLimitText;
  152. data['feedback_input_content_hint_text_color'] =
  153. this.feedbackInputContentHintTextColor;
  154. data['feedback_input_content_limit_text_color'] =
  155. this.feedbackInputContentLimitTextColor;
  156. data['feedback_upload_image_title'] = this.feedbackUploadImageTitle;
  157. data['feedback_upload_image_subtitle'] = this.feedbackUploadImageSubtitle;
  158. data['feedback_post_btn_text'] = this.feedbackPostBtnText;
  159. data['feedback_post_btn_bg_color'] = this.feedbackPostBtnBgColor;
  160. data['feedback_post_btn_text_color'] = this.feedbackPostBtnTextColor;
  161. data['feedback_list_btn_icon'] = this.feedbackListBtnIcon;
  162. data['feedback_list_btn_text'] = this.feedbackListBtnText;
  163. data['feedback_list_btn_text_color'] = this.feedbackListBtnTextColor;
  164. data['feedback_list_btn_bg_color'] = this.feedbackListBtnBgColor;
  165. data['feedback_list_btn_border_color'] = this.feedbackListBtnBorderColor;
  166. data['required_login'] = this.requiredLogin;
  167. data['required_taobao_auth'] = this.requiredTaobaoAuth;
  168. data['skip_identifier'] = this.skipIdentifier;
  169. return data;
  170. }
  171. }
  172. class FeedbackTypes {
  173. String typeId;
  174. String name;
  175. bool isSelect = false;
  176. FeedbackTypes({this.typeId, this.name});
  177. FeedbackTypes.fromJson(Map<String, dynamic> json) {
  178. typeId = json['type_id'];
  179. name = json['name'];
  180. }
  181. Map<String, dynamic> toJson() {
  182. final Map<String, dynamic> data = new Map<String, dynamic>();
  183. data['type_id'] = this.typeId;
  184. data['name'] = this.name;
  185. return data;
  186. }
  187. }