|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- import 'package:zhiying_comm/zhiying_comm.dart';
-
- class WithdrawModel {
- String appBarName;
- String appBarNameColor;
- String appBarBgColor;
- String appBarBgImg;
- String appBarRightText;
- String appBarRightTextColor;
- String appBarRightIcon;
- String availableCashOutText;
- String availableCashOutTextColor;
- String availableCashOutBgImg;
- String unbindAlipayImg;
- String bindAlipayImg;
- String unbindAlipayText;
- String bindAlipayText;
- String unbindAlipayGotoText;
- String bindAlipayGotoText;
- String isCashOutType;
- List<WithdrawDashbordItems> cashOutDashbordItems;
- String cashOutDashbordItemsUnselectedColor;
- String cashOutDashbordItemsSelectedColor;
- String cashOutDashbordItemsSelectedBgColor;
- String cashOutDashbordItemsUnselectedBgColor;
- String cashOutBtnText;
- String cashOutBtnTextAvailableColor;
- String cashOutBtnTextAvailableBgColor;
- String cashOutBtnTextUnavailableColor;
- String cashOutBtnTextUnavailableBgColor;
- String cashOutTips;
- SkipModel detailSkipModel;
- SkipModel gotoAliPay;
-
- WithdrawModel(
- {this.appBarName,
- this.appBarNameColor,
- this.appBarBgColor,
- this.appBarBgImg,
- this.appBarRightText,
- this.appBarRightTextColor,
- this.appBarRightIcon,
- this.availableCashOutText,
- this.availableCashOutTextColor,
- this.availableCashOutBgImg,
- this.unbindAlipayImg,
- this.bindAlipayImg,
- this.unbindAlipayText,
- this.bindAlipayText,
- this.unbindAlipayGotoText,
- this.bindAlipayGotoText,
- this.isCashOutType,
- this.cashOutDashbordItems,
- this.cashOutDashbordItemsUnselectedColor,
- this.cashOutDashbordItemsSelectedColor,
- this.cashOutDashbordItemsSelectedBgColor,
- this.cashOutDashbordItemsUnselectedBgColor,
- this.cashOutBtnText,
- this.cashOutBtnTextAvailableColor,
- this.cashOutBtnTextAvailableBgColor,
- this.cashOutBtnTextUnavailableColor,
- this.cashOutBtnTextUnavailableBgColor,
- this.cashOutTips});
-
- WithdrawModel.fromJson(Map<String, dynamic> json) {
- appBarName = json['app_bar_name'];
- appBarNameColor = json['app_bar_name_color'];
- appBarBgColor = json['app_bar_bg_color'];
- appBarBgImg = json['app_bar_bg_img'];
- appBarRightText = json['app_bar_right_text'];
- appBarRightTextColor = json['app_bar_right_text_color'];
- appBarRightIcon = json['app_bar_right_icon'];
- availableCashOutText = json['available_cash_out_text'];
- availableCashOutTextColor = json['available_cash_out_text_color'];
- availableCashOutBgImg = json['available_cash_out_bg_img'];
- unbindAlipayImg = json['unbind_alipay_img'];
- bindAlipayImg = json['bind_alipay_img'];
- unbindAlipayText = json['unbind_alipay_text'];
- bindAlipayText = json['bind_alipay_text'];
- unbindAlipayGotoText = json['unbind_alipay_goto_text'];
- bindAlipayGotoText = json['bind_alipay_goto_text'];
- isCashOutType = json['is_cash_out_type'];
- if (json['cash_out_dashbord_items'] != null) {
- cashOutDashbordItems = new List<WithdrawDashbordItems>();
- json['cash_out_dashbord_items'].forEach((v) {
- cashOutDashbordItems.add(new WithdrawDashbordItems.fromJson(v));
- });
- }
- cashOutDashbordItemsUnselectedColor =
- json['cash_out_dashbord_items_unselected_color'];
- cashOutDashbordItemsSelectedColor =
- json['cash_out_dashbord_items_selected_color'];
- cashOutDashbordItemsSelectedBgColor =
- json['cash_out_dashbord_items_selected_bg_color'];
- cashOutDashbordItemsUnselectedBgColor =
- json['cash_out_dashbord_items_unselected_bg_color'];
- cashOutBtnText = json['cash_out_btn_text'];
- cashOutBtnTextAvailableColor = json['cash_out_btn_text_available_color'];
- cashOutBtnTextAvailableBgColor =
- json['cash_out_btn_text_available_bg_color'];
- cashOutBtnTextUnavailableColor =
- json['cash_out_btn_text_unavailable_color'];
- cashOutBtnTextUnavailableBgColor =
- json['cash_out_btn_text_unavailable_bg_color'];
- cashOutTips = json['cash_out_tips'];
-
- if(json['app_bar_right_skip_identifier']!=null){
- detailSkipModel=SkipModel.fromJson(json['app_bar_right_skip_identifier']);
- }
- if(json['alipay_goto_skip_identifier']!=null){
- gotoAliPay=SkipModel.fromJson(json['alipay_goto_skip_identifier']);
- }
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['app_bar_name'] = this.appBarName;
- data['app_bar_name_color'] = this.appBarNameColor;
- data['app_bar_bg_color'] = this.appBarBgColor;
- data['app_bar_bg_img'] = this.appBarBgImg;
- data['app_bar_right_text'] = this.appBarRightText;
- data['app_bar_right_text_color'] = this.appBarRightTextColor;
- data['app_bar_right_icon'] = this.appBarRightIcon;
- data['available_cash_out_text'] = this.availableCashOutText;
- data['available_cash_out_text_color'] = this.availableCashOutTextColor;
- data['available_cash_out_bg_img'] = this.availableCashOutBgImg;
- data['unbind_alipay_img'] = this.unbindAlipayImg;
- data['bind_alipay_img'] = this.bindAlipayImg;
- data['unbind_alipay_text'] = this.unbindAlipayText;
- data['bind_alipay_text'] = this.bindAlipayText;
- data['unbind_alipay_goto_text'] = this.unbindAlipayGotoText;
- data['bind_alipay_goto_text'] = this.bindAlipayGotoText;
- data['is_cash_out_type'] = this.isCashOutType;
- if (this.cashOutDashbordItems != null) {
- data['cash_out_dashbord_items'] =
- this.cashOutDashbordItems.map((v) => v.toJson()).toList();
- }
- data['cash_out_dashbord_items_unselected_color'] =
- this.cashOutDashbordItemsUnselectedColor;
- data['cash_out_dashbord_items_selected_color'] =
- this.cashOutDashbordItemsSelectedColor;
- data['cash_out_dashbord_items_selected_bg_color'] =
- this.cashOutDashbordItemsSelectedBgColor;
- data['cash_out_dashbord_items_unselected_bg_color'] =
- this.cashOutDashbordItemsUnselectedBgColor;
- data['cash_out_btn_text'] = this.cashOutBtnText;
- data['cash_out_btn_text_available_color'] =
- this.cashOutBtnTextAvailableColor;
- data['cash_out_btn_text_available_bg_color'] =
- this.cashOutBtnTextAvailableBgColor;
- data['cash_out_btn_text_unavailable_color'] =
- this.cashOutBtnTextUnavailableColor;
- data['cash_out_btn_text_unavailable_bg_color'] =
- this.cashOutBtnTextUnavailableBgColor;
- data['cash_out_tips'] = this.cashOutTips;
- return data;
- }
- }
-
- class WithdrawDashbordItems {
- String name;
- String value;
-
- WithdrawDashbordItems({this.name, this.value});
-
- WithdrawDashbordItems.fromJson(Map<String, dynamic> json) {
- name = json['name'];
- value = json['value'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['name'] = this.name;
- data['value'] = this.value;
- return data;
- }
- }
|