基础组件库
 
 
 
 
 

562 lines
22 KiB

  1. /// back_img : "http://ossq.izhyin.cn/back_up.png"
  2. /// logo_img : "http://ossq.izhyin.cn/login_logo.png"
  3. /// main : {"app_bar_title":"","app_bar_title_color":"","app_bar_bg_color":"","app_name_img":"http://ossq.izhyin.cn/login_app_name.png","background_img":"http://ossq.izhyin.cn/login_bg.png","agreements":[{"text":"登录表示您已阅读并同意","text_color":"#C0C0C0","url":""},{"text":"《用户协议》","text_color":"#FF4242","url":"http://www.hairuyi.com/?mod=appapi&act=privacy&ctrl=index&type=protocol"},{"text":"与","text_color":"#C0C0C0","url":""},{"text":"《隐私政策》","text_color":"#FF4242","url":"http://www.hairuyi.com/?mod=appapi&act=privacy&ctrl=index&type=privacyPolicy"}],"importance_login":[{"type":"mobile","btn_text":"手机登录","btn_text_color":"#FFFFFF","btn_border_color":"#FF4242","btn_bg_color":"#FF4242","btn_mobile_icon":"http://ossq.izhyin.cn/login_mobile_icon.png"},{"type":"wechat","btn_text":"微信登录","btn_text_color":"#FF4242","btn_border_color":"#FF4242","btn_bg_color":"#FFFFFF","btn_mobile_icon":"http://ossq.izhyin.cn/login_wechat_icon.png"}],"other_icons_title":"其它方式登录","other_icons_title_color":"#333333","other_expansion_icon":"http://ossq.izhyin.cn/login_other_expansion_icon.png","bottom_icons":[{"type":"qq","img":"http://ossq.izhyin.cn/login_qq_icon.png"},{"type":"taobao","img":"http://ossq.izhyin.cn/login_taobao_icon.png"},{"type":"apple","img":"http://ossq.izhyin.cn/login_apple_icon.png"}]}
  4. /// mobile : {"vcode_time":"60","app_bar_title":"登录","app_bar_title_color":"#333333","app_bar_bg_color":"#FFFFFF","title":"您好,欢迎登录","title_color":"#333333","input_hint_color":"#999999","input_text_color":"#333333","input_bg_color":"#F7F7F7","input_mobile_icon":"xxxx","input_mobile_hint_text":"请输入您的手机号","input_vcode_icon":"xxxx","input_vcode_hint_text":"请输入您的验证码","input_other_code_icon":"xxx","input_other_code_icon_text":"请输入右方验证码","input_pass_icon":"http://xxx","input_pass_hint_text":"请输入您的密码","btn_login_text":"立即登录","btn_login_text_color":"#FFFFFF","btn_login_bg_color":"#FF3939","btn_login_shadow_color":"#FF0000","btn_login_ban_bg_color":"#F5F5F5","btn_login_ban_text_color":"#999999","btn_vcode_text":"获取验证码","btn_vcode_bg_color":"#FF4343","btn_vcode_ban_text_color":"#FFFFFF","btn_vcode_ban_bg_color":"#DDDDDD","text_use_pass_tip":"使用密码登录","text_use_vcode_tip":"使用验证码登录","text_use_pass_tip_color":"#999999","text_use_vcode_tip_color":"#999999","text_bottom_tip":"未注册过的手机将自动注册","text_bottom_tip_color":"#999999","protocol_select_icon":"http://xxxxx","protocol_unselect_icon":"http://xxxx","protocol":[{"text":"同意","text_color":"#C0C0C0","url":""},{"text":"《智莺生活用户协议》","text_color":"#FF3939","url":"http://www.hairuyi.com/?mod=appapi&act=privacy&ctrl=index&type=protocol"},{"text":"及","text_color":"#C0C0C0","url":""},{"text":"《隐私政策》","text_color":"#FF3939","url":"http://www.hairuyi.com/?mod=appapi&act=privacy&ctrl=index&type=privacyPolicy"}]}
  5. /// invite : {"app_bar_title":"登陆","app_bar_title_color":"#333333","app_bar_bg_color":"#FFFFFF","title":"输入邀请码","title_color":"#333333","input_hint_color":"#999999","input_bg_color":"#F7F7F7","btn_ban_bg_color":"#F5F5F5","btn_ban_text_color":"#999999","input_invite_icon":"http://xxxx","input_invite_text":"请输入邀请码","input_invite_text_color":"#999999","btn_submit_text":"进入智莺生活","btn_submit_text_color":"#FFFFFF","btn_submit_bg_color":"#FF3939","btn_submit_shadow_color":"#FF0000"}
  6. /// quick : {"app_bar_title":"","app_bar_bg_color":"","app_bar_title_color":"#FFFFFF","account_color":"#333333","text_tip":"切换账号","text_tip_color":"#FF3939","btn_submit_text":"立即登录","btn_submit_text_color":"#FFFFFF","btn_submit_bg_color":"#FF3939","btn_submit_shadow_color":"#FF0000","protocol_select_icon":"http://xxxx","protocol_unselect_icon":"http://xxxxx","text_bottom_tip":"中国电信提供认证服务","text_bottom_tip_color":"#C0C0C0","protocol":[{"text":"同意","text_color":"#C0C0C0","url":""},{"text":"《智莺生活用户协议》","text_color":"#FF3939","url":"http://www.hairuyi.com/?mod=appapi&act=privacy&ctrl=index&type=protocol"},{"text":"及","text_color":"#C0C0C0","url":""},{"text":"《隐私政策》","text_color":"#FF3939","url":"http://www.hairuyi.com/?mod=appapi&act=privacy&ctrl=index&type=privacyPolicy"}]}
  7. /// flash_login_enable : "1"
  8. class LoginModel {
  9. String backImg;
  10. String logoImg;
  11. Main main;
  12. Mobile mobile;
  13. Invite invite;
  14. Quick quick;
  15. String flashLoginEnable;
  16. LoginModel(
  17. {this.backImg,
  18. this.logoImg,
  19. this.main,
  20. this.mobile,
  21. this.invite,
  22. this.quick,
  23. this.flashLoginEnable});
  24. LoginModel.fromJson(Map<String, dynamic> json) {
  25. backImg = json['back_img'];
  26. logoImg = json['logo_img'];
  27. main = json['main'] != null ? new Main.fromJson(json['main']) : null;
  28. mobile =
  29. json['mobile'] != null ? new Mobile.fromJson(json['mobile']) : null;
  30. invite =
  31. json['invite'] != null ? new Invite.fromJson(json['invite']) : null;
  32. quick = json['quick'] != null ? new Quick.fromJson(json['quick']) : null;
  33. flashLoginEnable = json['flash_login_enable'];
  34. }
  35. Map<String, dynamic> toJson() {
  36. final Map<String, dynamic> data = new Map<String, dynamic>();
  37. data['back_img'] = this.backImg;
  38. data['logo_img'] = this.logoImg;
  39. if (this.main != null) {
  40. data['main'] = this.main.toJson();
  41. }
  42. if (this.mobile != null) {
  43. data['mobile'] = this.mobile.toJson();
  44. }
  45. if (this.invite != null) {
  46. data['invite'] = this.invite.toJson();
  47. }
  48. if (this.quick != null) {
  49. data['quick'] = this.quick.toJson();
  50. }
  51. data['flash_login_enable'] = this.flashLoginEnable;
  52. return data;
  53. }
  54. }
  55. class Main {
  56. String appBarTitle;
  57. String appBarTitleColor;
  58. String appBarBgColor;
  59. String appNameImg;
  60. String backgroundImg;
  61. List<Agreements> agreements;
  62. List<ImportanceLogin> importanceLogin;
  63. String otherIconsTitle;
  64. String otherIconsTitleColor;
  65. String otherExpansionIcon;
  66. List<BottomIcons> bottomIcons;
  67. Main(
  68. {this.appBarTitle,
  69. this.appBarTitleColor,
  70. this.appBarBgColor,
  71. this.appNameImg,
  72. this.backgroundImg,
  73. this.agreements,
  74. this.importanceLogin,
  75. this.otherIconsTitle,
  76. this.otherIconsTitleColor,
  77. this.otherExpansionIcon,
  78. this.bottomIcons});
  79. Main.fromJson(Map<String, dynamic> json) {
  80. appBarTitle = json['app_bar_title'];
  81. appBarTitleColor = json['app_bar_title_color'];
  82. appBarBgColor = json['app_bar_bg_color'];
  83. appNameImg = json['app_name_img'];
  84. backgroundImg = json['background_img'];
  85. if (json['agreements'] != null) {
  86. agreements = new List<Agreements>();
  87. json['agreements'].forEach((v) {
  88. agreements.add(new Agreements.fromJson(v));
  89. });
  90. }
  91. if (json['importance_login'] != null) {
  92. importanceLogin = new List<ImportanceLogin>();
  93. json['importance_login'].forEach((v) {
  94. importanceLogin.add(new ImportanceLogin.fromJson(v));
  95. });
  96. }
  97. otherIconsTitle = json['other_icons_title'];
  98. otherIconsTitleColor = json['other_icons_title_color'];
  99. otherExpansionIcon = json['other_expansion_icon'];
  100. if (json['bottom_icons'] != null) {
  101. bottomIcons = new List<BottomIcons>();
  102. json['bottom_icons'].forEach((v) {
  103. bottomIcons.add(new BottomIcons.fromJson(v));
  104. });
  105. }
  106. }
  107. Map<String, dynamic> toJson() {
  108. final Map<String, dynamic> data = new Map<String, dynamic>();
  109. data['app_bar_title'] = this.appBarTitle;
  110. data['app_bar_title_color'] = this.appBarTitleColor;
  111. data['app_bar_bg_color'] = this.appBarBgColor;
  112. data['app_name_img'] = this.appNameImg;
  113. data['background_img'] = this.backgroundImg;
  114. if (this.agreements != null) {
  115. data['agreements'] = this.agreements.map((v) => v.toJson()).toList();
  116. }
  117. if (this.importanceLogin != null) {
  118. data['importance_login'] =
  119. this.importanceLogin.map((v) => v.toJson()).toList();
  120. }
  121. data['other_icons_title'] = this.otherIconsTitle;
  122. data['other_icons_title_color'] = this.otherIconsTitleColor;
  123. data['other_expansion_icon'] = this.otherExpansionIcon;
  124. if (this.bottomIcons != null) {
  125. data['bottom_icons'] = this.bottomIcons.map((v) => v.toJson()).toList();
  126. }
  127. return data;
  128. }
  129. }
  130. class Agreements {
  131. String text;
  132. String textColor;
  133. String url;
  134. Agreements({this.text, this.textColor, this.url});
  135. Agreements.fromJson(Map<String, dynamic> json) {
  136. text = json['text'];
  137. textColor = json['text_color'];
  138. url = json['url'];
  139. }
  140. Map<String, dynamic> toJson() {
  141. final Map<String, dynamic> data = new Map<String, dynamic>();
  142. data['text'] = this.text;
  143. data['text_color'] = this.textColor;
  144. data['url'] = this.url;
  145. return data;
  146. }
  147. }
  148. class ImportanceLogin {
  149. String type;
  150. String btnText;
  151. String btnTextColor;
  152. String btnBorderColor;
  153. String btnBgColor;
  154. String btnMobileIcon;
  155. ImportanceLogin(
  156. {this.type,
  157. this.btnText,
  158. this.btnTextColor,
  159. this.btnBorderColor,
  160. this.btnBgColor,
  161. this.btnMobileIcon});
  162. ImportanceLogin.fromJson(Map<String, dynamic> json) {
  163. type = json['type'];
  164. btnText = json['btn_text'];
  165. btnTextColor = json['btn_text_color'];
  166. btnBorderColor = json['btn_border_color'];
  167. btnBgColor = json['btn_bg_color'];
  168. btnMobileIcon = json['btn_mobile_icon'];
  169. }
  170. Map<String, dynamic> toJson() {
  171. final Map<String, dynamic> data = new Map<String, dynamic>();
  172. data['type'] = this.type;
  173. data['btn_text'] = this.btnText;
  174. data['btn_text_color'] = this.btnTextColor;
  175. data['btn_border_color'] = this.btnBorderColor;
  176. data['btn_bg_color'] = this.btnBgColor;
  177. data['btn_mobile_icon'] = this.btnMobileIcon;
  178. return data;
  179. }
  180. }
  181. class BottomIcons {
  182. String type;
  183. String img;
  184. BottomIcons({this.type, this.img});
  185. BottomIcons.fromJson(Map<String, dynamic> json) {
  186. type = json['type'];
  187. img = json['img'];
  188. }
  189. Map<String, dynamic> toJson() {
  190. final Map<String, dynamic> data = new Map<String, dynamic>();
  191. data['type'] = this.type;
  192. data['img'] = this.img;
  193. return data;
  194. }
  195. }
  196. class Mobile {
  197. String vcodeTime;
  198. String appBarTitle;
  199. String appBarTitleColor;
  200. String appBarBgColor;
  201. String title;
  202. String titleColor;
  203. String inputHintColor;
  204. String inputTextColor;
  205. String inputBgColor;
  206. String inputMobileIcon;
  207. String inputMobileHintText;
  208. String inputVcodeIcon;
  209. String inputVcodeHintText;
  210. String inputOtherCodeIcon;
  211. String inputOtherCodeIconText;
  212. String inputPassIcon;
  213. String inputPassHintText;
  214. String btnLoginText;
  215. String btnLoginTextColor;
  216. String btnLoginBgColor;
  217. String btnLoginShadowColor;
  218. String btnLoginBanBgColor;
  219. String btnLoginBanTextColor;
  220. String btnVcodeText;
  221. String btnVcodeTextColor;
  222. String btnVcodeBgColor;
  223. String btnVcodeBanTextColor;
  224. String btnVcodeBanBgColor;
  225. String textUsePassTip;
  226. String textUseVcodeTip;
  227. String textUsePassTipColor;
  228. String textUseVcodeTipColor;
  229. String textBottomTip;
  230. String textBottomTipColor;
  231. String protocolSelectIcon;
  232. String protocolUnselectIcon;
  233. List<Protocol> protocol;
  234. Mobile(
  235. {this.vcodeTime,
  236. this.appBarTitle,
  237. this.appBarTitleColor,
  238. this.appBarBgColor,
  239. this.title,
  240. this.titleColor,
  241. this.inputHintColor,
  242. this.inputTextColor,
  243. this.inputBgColor,
  244. this.inputMobileIcon,
  245. this.inputMobileHintText,
  246. this.inputVcodeIcon,
  247. this.inputVcodeHintText,
  248. this.inputOtherCodeIcon,
  249. this.inputOtherCodeIconText,
  250. this.inputPassIcon,
  251. this.inputPassHintText,
  252. this.btnLoginText,
  253. this.btnLoginTextColor,
  254. this.btnLoginBgColor,
  255. this.btnLoginShadowColor,
  256. this.btnLoginBanBgColor,
  257. this.btnLoginBanTextColor,
  258. this.btnVcodeText,
  259. this.btnVcodeTextColor,
  260. this.btnVcodeBgColor,
  261. this.btnVcodeBanTextColor,
  262. this.btnVcodeBanBgColor,
  263. this.textUsePassTip,
  264. this.textUseVcodeTip,
  265. this.textUsePassTipColor,
  266. this.textUseVcodeTipColor,
  267. this.textBottomTip,
  268. this.textBottomTipColor,
  269. this.protocolSelectIcon,
  270. this.protocolUnselectIcon,
  271. this.protocol});
  272. Mobile.fromJson(Map<String, dynamic> json) {
  273. vcodeTime = json['vcode_time'];
  274. appBarTitle = json['app_bar_title'];
  275. appBarTitleColor = json['app_bar_title_color'];
  276. appBarBgColor = json['app_bar_bg_color'];
  277. title = json['title'];
  278. titleColor = json['title_color'];
  279. inputHintColor = json['input_hint_color'];
  280. inputTextColor = json['input_text_color'];
  281. inputBgColor = json['input_bg_color'];
  282. inputMobileIcon = json['input_mobile_icon'];
  283. inputMobileHintText = json['input_mobile_hint_text'];
  284. inputVcodeIcon = json['input_vcode_icon'];
  285. inputVcodeHintText = json['input_vcode_hint_text'];
  286. inputOtherCodeIcon = json['input_other_code_icon'];
  287. inputOtherCodeIconText = json['input_other_code_icon_text'];
  288. inputPassIcon = json['input_pass_icon'];
  289. inputPassHintText = json['input_pass_hint_text'];
  290. btnLoginText = json['btn_login_text'];
  291. btnLoginTextColor = json['btn_login_text_color'];
  292. btnLoginBgColor = json['btn_login_bg_color'];
  293. btnLoginShadowColor = json['btn_login_shadow_color'];
  294. btnLoginBanBgColor = json['btn_login_ban_bg_color'];
  295. btnLoginBanTextColor = json['btn_login_ban_text_color'];
  296. btnVcodeText = json['btn_vcode_text'];
  297. btnVcodeTextColor = json['btnVcodeTextColor'];
  298. btnVcodeBgColor = json['btn_vcode_bg_color'];
  299. btnVcodeBanTextColor = json['btn_vcode_ban_text_color'];
  300. btnVcodeBanBgColor = json['btn_vcode_ban_bg_color'];
  301. textUsePassTip = json['text_use_pass_tip'];
  302. textUseVcodeTip = json['text_use_vcode_tip'];
  303. textUsePassTipColor = json['text_use_pass_tip_color'];
  304. textUseVcodeTipColor = json['text_use_vcode_tip_color'];
  305. textBottomTip = json['text_bottom_tip'];
  306. textBottomTipColor = json['text_bottom_tip_color'];
  307. protocolSelectIcon = json['protocol_select_icon'];
  308. protocolUnselectIcon = json['protocol_unselect_icon'];
  309. if (json['protocol'] != null) {
  310. protocol = new List<Protocol>();
  311. json['protocol'].forEach((v) {
  312. protocol.add(new Protocol.fromJson(v));
  313. });
  314. }
  315. }
  316. Map<String, dynamic> toJson() {
  317. final Map<String, dynamic> data = new Map<String, dynamic>();
  318. data['vcode_time'] = this.vcodeTime;
  319. data['app_bar_title'] = this.appBarTitle;
  320. data['app_bar_title_color'] = this.appBarTitleColor;
  321. data['app_bar_bg_color'] = this.appBarBgColor;
  322. data['title'] = this.title;
  323. data['title_color'] = this.titleColor;
  324. data['input_hint_color'] = this.inputHintColor;
  325. data['input_text_color'] = this.inputTextColor;
  326. data['input_bg_color'] = this.inputBgColor;
  327. data['input_mobile_icon'] = this.inputMobileIcon;
  328. data['input_mobile_hint_text'] = this.inputMobileHintText;
  329. data['input_vcode_icon'] = this.inputVcodeIcon;
  330. data['input_vcode_hint_text'] = this.inputVcodeHintText;
  331. data['input_other_code_icon'] = this.inputOtherCodeIcon;
  332. data['input_other_code_icon_text'] = this.inputOtherCodeIconText;
  333. data['input_pass_icon'] = this.inputPassIcon;
  334. data['input_pass_hint_text'] = this.inputPassHintText;
  335. data['btn_login_text'] = this.btnLoginText;
  336. data['btn_login_text_color'] = this.btnLoginTextColor;
  337. data['btn_login_bg_color'] = this.btnLoginBgColor;
  338. data['btn_login_shadow_color'] = this.btnLoginShadowColor;
  339. data['btn_login_ban_bg_color'] = this.btnLoginBanBgColor;
  340. data['btn_login_ban_text_color'] = this.btnLoginBanTextColor;
  341. data['btn_vcode_text'] = this.btnVcodeText;
  342. data['btnVcodeTextColor'] = this.btnVcodeTextColor;
  343. data['btn_vcode_bg_color'] = this.btnVcodeBgColor;
  344. data['btn_vcode_ban_text_color'] = this.btnVcodeBanTextColor;
  345. data['btn_vcode_ban_bg_color'] = this.btnVcodeBanBgColor;
  346. data['text_use_pass_tip'] = this.textUsePassTip;
  347. data['text_use_vcode_tip'] = this.textUseVcodeTip;
  348. data['text_use_pass_tip_color'] = this.textUsePassTipColor;
  349. data['text_use_vcode_tip_color'] = this.textUseVcodeTipColor;
  350. data['text_bottom_tip'] = this.textBottomTip;
  351. data['text_bottom_tip_color'] = this.textBottomTipColor;
  352. data['protocol_select_icon'] = this.protocolSelectIcon;
  353. data['protocol_unselect_icon'] = this.protocolUnselectIcon;
  354. if (this.protocol != null) {
  355. data['protocol'] = this.protocol.map((v) => v.toJson()).toList();
  356. }
  357. return data;
  358. }
  359. }
  360. class Invite {
  361. String appBarTitle;
  362. String appBarTitleColor;
  363. String appBarBgColor;
  364. String title;
  365. String titleColor;
  366. String inputHintColor;
  367. String inputBgColor;
  368. String btnBanBgColor;
  369. String btnBanTextColor;
  370. String inputInviteIcon;
  371. String inputInviteText;
  372. String inputInviteTextColor;
  373. String btnSubmitText;
  374. String btnSubmitTextColor;
  375. String btnSubmitBgColor;
  376. String btnSubmitShadowColor;
  377. Invite(
  378. {this.appBarTitle,
  379. this.appBarTitleColor,
  380. this.appBarBgColor,
  381. this.title,
  382. this.titleColor,
  383. this.inputHintColor,
  384. this.inputBgColor,
  385. this.btnBanBgColor,
  386. this.btnBanTextColor,
  387. this.inputInviteIcon,
  388. this.inputInviteText,
  389. this.inputInviteTextColor,
  390. this.btnSubmitText,
  391. this.btnSubmitTextColor,
  392. this.btnSubmitBgColor,
  393. this.btnSubmitShadowColor});
  394. Invite.fromJson(Map<String, dynamic> json) {
  395. appBarTitle = json['app_bar_title'];
  396. appBarTitleColor = json['app_bar_title_color'];
  397. appBarBgColor = json['app_bar_bg_color'];
  398. title = json['title'];
  399. titleColor = json['title_color'];
  400. inputHintColor = json['input_hint_color'];
  401. inputBgColor = json['input_bg_color'];
  402. btnBanBgColor = json['btn_ban_bg_color'];
  403. btnBanTextColor = json['btn_ban_text_color'];
  404. inputInviteIcon = json['input_invite_icon'];
  405. inputInviteText = json['input_invite_text'];
  406. inputInviteTextColor = json['input_invite_text_color'];
  407. btnSubmitText = json['btn_submit_text'];
  408. btnSubmitTextColor = json['btn_submit_text_color'];
  409. btnSubmitBgColor = json['btn_submit_bg_color'];
  410. btnSubmitShadowColor = json['btn_submit_shadow_color'];
  411. }
  412. Map<String, dynamic> toJson() {
  413. final Map<String, dynamic> data = new Map<String, dynamic>();
  414. data['app_bar_title'] = this.appBarTitle;
  415. data['app_bar_title_color'] = this.appBarTitleColor;
  416. data['app_bar_bg_color'] = this.appBarBgColor;
  417. data['title'] = this.title;
  418. data['title_color'] = this.titleColor;
  419. data['input_hint_color'] = this.inputHintColor;
  420. data['input_bg_color'] = this.inputBgColor;
  421. data['btn_ban_bg_color'] = this.btnBanBgColor;
  422. data['btn_ban_text_color'] = this.btnBanTextColor;
  423. data['input_invite_icon'] = this.inputInviteIcon;
  424. data['input_invite_text'] = this.inputInviteText;
  425. data['input_invite_text_color'] = this.inputInviteTextColor;
  426. data['btn_submit_text'] = this.btnSubmitText;
  427. data['btn_submit_text_color'] = this.btnSubmitTextColor;
  428. data['btn_submit_bg_color'] = this.btnSubmitBgColor;
  429. data['btn_submit_shadow_color'] = this.btnSubmitShadowColor;
  430. return data;
  431. }
  432. }
  433. class Quick {
  434. String appBarTitle;
  435. String appBarBgColor;
  436. String appBarTitleColor;
  437. String accountColor;
  438. String textTip;
  439. String textTipColor;
  440. String btnSubmitText;
  441. String btnSubmitTextColor;
  442. String btnSubmitBgColor;
  443. String btnSubmitShadowColor;
  444. String protocolSelectIcon;
  445. String protocolUnselectIcon;
  446. String textBottomTip;
  447. String textBottomTipColor;
  448. List<Protocol> protocol;
  449. Quick(
  450. {this.appBarTitle,
  451. this.appBarBgColor,
  452. this.appBarTitleColor,
  453. this.accountColor,
  454. this.textTip,
  455. this.textTipColor,
  456. this.btnSubmitText,
  457. this.btnSubmitTextColor,
  458. this.btnSubmitBgColor,
  459. this.btnSubmitShadowColor,
  460. this.protocolSelectIcon,
  461. this.protocolUnselectIcon,
  462. this.textBottomTip,
  463. this.textBottomTipColor,
  464. this.protocol});
  465. Quick.fromJson(Map<String, dynamic> json) {
  466. appBarTitle = json['app_bar_title'];
  467. appBarBgColor = json['app_bar_bg_color'];
  468. appBarTitleColor = json['app_bar_title_color'];
  469. accountColor = json['account_color'];
  470. textTip = json['text_tip'];
  471. textTipColor = json['text_tip_color'];
  472. btnSubmitText = json['btn_submit_text'];
  473. btnSubmitTextColor = json['btn_submit_text_color'];
  474. btnSubmitBgColor = json['btn_submit_bg_color'];
  475. btnSubmitShadowColor = json['btn_submit_shadow_color'];
  476. protocolSelectIcon = json['protocol_select_icon'];
  477. protocolUnselectIcon = json['protocol_unselect_icon'];
  478. textBottomTip = json['text_bottom_tip'];
  479. textBottomTipColor = json['text_bottom_tip_color'];
  480. if (json['protocol'] != null) {
  481. protocol = new List<Protocol>();
  482. json['protocol'].forEach((v) {
  483. protocol.add(new Protocol.fromJson(v));
  484. });
  485. }
  486. }
  487. Map<String, dynamic> toJson() {
  488. final Map<String, dynamic> data = new Map<String, dynamic>();
  489. data['app_bar_title'] = this.appBarTitle;
  490. data['app_bar_bg_color'] = this.appBarBgColor;
  491. data['app_bar_title_color'] = this.appBarTitleColor;
  492. data['account_color'] = this.accountColor;
  493. data['text_tip'] = this.textTip;
  494. data['text_tip_color'] = this.textTipColor;
  495. data['btn_submit_text'] = this.btnSubmitText;
  496. data['btn_submit_text_color'] = this.btnSubmitTextColor;
  497. data['btn_submit_bg_color'] = this.btnSubmitBgColor;
  498. data['btn_submit_shadow_color'] = this.btnSubmitShadowColor;
  499. data['protocol_select_icon'] = this.protocolSelectIcon;
  500. data['protocol_unselect_icon'] = this.protocolUnselectIcon;
  501. data['text_bottom_tip'] = this.textBottomTip;
  502. data['text_bottom_tip_color'] = this.textBottomTipColor;
  503. if (this.protocol != null) {
  504. data['protocol'] = this.protocol.map((v) => v.toJson()).toList();
  505. }
  506. return data;
  507. }
  508. }
  509. class Protocol {
  510. String text;
  511. String textColor;
  512. String url;
  513. Protocol({this.text, this.textColor, this.url});
  514. Protocol.fromJson(Map<String, dynamic> json) {
  515. text = json['text'];
  516. textColor = json['text_color'];
  517. url = json['url'];
  518. }
  519. Map<String, dynamic> toJson() {
  520. final Map<String, dynamic> data = new Map<String, dynamic>();
  521. data['text'] = this.text;
  522. data['text_color'] = this.textColor;
  523. data['url'] = this.url;
  524. return data;
  525. }
  526. }