基础组件库
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 

178 рядки
6.8 KiB

  1. import 'package:zhiying_comm/zhiying_comm.dart';
  2. class WithdrawModel {
  3. String appBarName;
  4. String appBarNameColor;
  5. String appBarBgColor;
  6. String appBarBgImg;
  7. String appBarRightText;
  8. String appBarRightTextColor;
  9. String appBarRightIcon;
  10. String availableCashOutText;
  11. String availableCashOutTextColor;
  12. String availableCashOutBgImg;
  13. String unbindAlipayImg;
  14. String bindAlipayImg;
  15. String unbindAlipayText;
  16. String bindAlipayText;
  17. String unbindAlipayGotoText;
  18. String bindAlipayGotoText;
  19. String isCashOutType;
  20. List<WithdrawDashbordItems> cashOutDashbordItems;
  21. String cashOutDashbordItemsUnselectedColor;
  22. String cashOutDashbordItemsSelectedColor;
  23. String cashOutDashbordItemsSelectedBgColor;
  24. String cashOutDashbordItemsUnselectedBgColor;
  25. String cashOutBtnText;
  26. String cashOutBtnTextAvailableColor;
  27. String cashOutBtnTextAvailableBgColor;
  28. String cashOutBtnTextUnavailableColor;
  29. String cashOutBtnTextUnavailableBgColor;
  30. String cashOutTips;
  31. SkipModel detailSkipModel;
  32. SkipModel gotoAliPay;
  33. WithdrawModel(
  34. {this.appBarName,
  35. this.appBarNameColor,
  36. this.appBarBgColor,
  37. this.appBarBgImg,
  38. this.appBarRightText,
  39. this.appBarRightTextColor,
  40. this.appBarRightIcon,
  41. this.availableCashOutText,
  42. this.availableCashOutTextColor,
  43. this.availableCashOutBgImg,
  44. this.unbindAlipayImg,
  45. this.bindAlipayImg,
  46. this.unbindAlipayText,
  47. this.bindAlipayText,
  48. this.unbindAlipayGotoText,
  49. this.bindAlipayGotoText,
  50. this.isCashOutType,
  51. this.cashOutDashbordItems,
  52. this.cashOutDashbordItemsUnselectedColor,
  53. this.cashOutDashbordItemsSelectedColor,
  54. this.cashOutDashbordItemsSelectedBgColor,
  55. this.cashOutDashbordItemsUnselectedBgColor,
  56. this.cashOutBtnText,
  57. this.cashOutBtnTextAvailableColor,
  58. this.cashOutBtnTextAvailableBgColor,
  59. this.cashOutBtnTextUnavailableColor,
  60. this.cashOutBtnTextUnavailableBgColor,
  61. this.cashOutTips});
  62. WithdrawModel.fromJson(Map<String, dynamic> json) {
  63. appBarName = json['app_bar_name'];
  64. appBarNameColor = json['app_bar_name_color'];
  65. appBarBgColor = json['app_bar_bg_color'];
  66. appBarBgImg = json['app_bar_bg_img'];
  67. appBarRightText = json['app_bar_right_text'];
  68. appBarRightTextColor = json['app_bar_right_text_color'];
  69. appBarRightIcon = json['app_bar_right_icon'];
  70. availableCashOutText = json['available_cash_out_text'];
  71. availableCashOutTextColor = json['available_cash_out_text_color'];
  72. availableCashOutBgImg = json['available_cash_out_bg_img'];
  73. unbindAlipayImg = json['unbind_alipay_img'];
  74. bindAlipayImg = json['bind_alipay_img'];
  75. unbindAlipayText = json['unbind_alipay_text'];
  76. bindAlipayText = json['bind_alipay_text'];
  77. unbindAlipayGotoText = json['unbind_alipay_goto_text'];
  78. bindAlipayGotoText = json['bind_alipay_goto_text'];
  79. isCashOutType = json['is_cash_out_type']?.toString();
  80. if (json['cash_out_dashbord_items'] != null) {
  81. cashOutDashbordItems = new List<WithdrawDashbordItems>();
  82. json['cash_out_dashbord_items'].forEach((v) {
  83. cashOutDashbordItems.add(new WithdrawDashbordItems.fromJson(v));
  84. });
  85. }
  86. cashOutDashbordItemsUnselectedColor =
  87. json['cash_out_dashbord_items_unselected_color'];
  88. cashOutDashbordItemsSelectedColor =
  89. json['cash_out_dashbord_items_selected_color'];
  90. cashOutDashbordItemsSelectedBgColor =
  91. json['cash_out_dashbord_items_selected_bg_color'];
  92. cashOutDashbordItemsUnselectedBgColor =
  93. json['cash_out_dashbord_items_unselected_bg_color'];
  94. cashOutBtnText = json['cash_out_btn_text'];
  95. cashOutBtnTextAvailableColor = json['cash_out_btn_text_available_color'];
  96. cashOutBtnTextAvailableBgColor =
  97. json['cash_out_btn_text_available_bg_color'];
  98. cashOutBtnTextUnavailableColor =
  99. json['cash_out_btn_text_unavailable_color'];
  100. cashOutBtnTextUnavailableBgColor =
  101. json['cash_out_btn_text_unavailable_bg_color'];
  102. cashOutTips = json['cash_out_tips'];
  103. if(json['app_bar_right_skip_identifier']!=null){
  104. detailSkipModel=SkipModel.fromJson(json['app_bar_right_skip_identifier']);
  105. }
  106. if(json['alipay_goto_skip_identifier']!=null){
  107. gotoAliPay=SkipModel.fromJson(json['alipay_goto_skip_identifier']);
  108. }
  109. }
  110. Map<String, dynamic> toJson() {
  111. final Map<String, dynamic> data = new Map<String, dynamic>();
  112. data['app_bar_name'] = this.appBarName;
  113. data['app_bar_name_color'] = this.appBarNameColor;
  114. data['app_bar_bg_color'] = this.appBarBgColor;
  115. data['app_bar_bg_img'] = this.appBarBgImg;
  116. data['app_bar_right_text'] = this.appBarRightText;
  117. data['app_bar_right_text_color'] = this.appBarRightTextColor;
  118. data['app_bar_right_icon'] = this.appBarRightIcon;
  119. data['available_cash_out_text'] = this.availableCashOutText;
  120. data['available_cash_out_text_color'] = this.availableCashOutTextColor;
  121. data['available_cash_out_bg_img'] = this.availableCashOutBgImg;
  122. data['unbind_alipay_img'] = this.unbindAlipayImg;
  123. data['bind_alipay_img'] = this.bindAlipayImg;
  124. data['unbind_alipay_text'] = this.unbindAlipayText;
  125. data['bind_alipay_text'] = this.bindAlipayText;
  126. data['unbind_alipay_goto_text'] = this.unbindAlipayGotoText;
  127. data['bind_alipay_goto_text'] = this.bindAlipayGotoText;
  128. data['is_cash_out_type'] = this.isCashOutType;
  129. if (this.cashOutDashbordItems != null) {
  130. data['cash_out_dashbord_items'] =
  131. this.cashOutDashbordItems.map((v) => v.toJson()).toList();
  132. }
  133. data['cash_out_dashbord_items_unselected_color'] =
  134. this.cashOutDashbordItemsUnselectedColor;
  135. data['cash_out_dashbord_items_selected_color'] =
  136. this.cashOutDashbordItemsSelectedColor;
  137. data['cash_out_dashbord_items_selected_bg_color'] =
  138. this.cashOutDashbordItemsSelectedBgColor;
  139. data['cash_out_dashbord_items_unselected_bg_color'] =
  140. this.cashOutDashbordItemsUnselectedBgColor;
  141. data['cash_out_btn_text'] = this.cashOutBtnText;
  142. data['cash_out_btn_text_available_color'] =
  143. this.cashOutBtnTextAvailableColor;
  144. data['cash_out_btn_text_available_bg_color'] =
  145. this.cashOutBtnTextAvailableBgColor;
  146. data['cash_out_btn_text_unavailable_color'] =
  147. this.cashOutBtnTextUnavailableColor;
  148. data['cash_out_btn_text_unavailable_bg_color'] =
  149. this.cashOutBtnTextUnavailableBgColor;
  150. data['cash_out_tips'] = this.cashOutTips;
  151. return data;
  152. }
  153. }
  154. class WithdrawDashbordItems {
  155. String name;
  156. String value;
  157. WithdrawDashbordItems({this.name, this.value});
  158. WithdrawDashbordItems.fromJson(Map<String, dynamic> json) {
  159. name = json['name'];
  160. value = json['value']?.toString();
  161. }
  162. Map<String, dynamic> toJson() {
  163. final Map<String, dynamic> data = new Map<String, dynamic>();
  164. data['name'] = this.name;
  165. data['value'] = this.value;
  166. return data;
  167. }
  168. }