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

167 lines
6.4 KiB

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