基础库
 
 
 
 
 

569 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 LoginStyleModel {
  9. // 返回图标
  10. String backImg;
  11. // logo
  12. String logoImg;
  13. // 登录首页的UI
  14. Main main;
  15. // 手机绑定
  16. Mobile mobile;
  17. // 邀请好友页面
  18. Invite invite;
  19. // 一键登录
  20. Quick quick;
  21. // 是否需要填写邀请码
  22. String flashLoginEnable;
  23. LoginStyleModel({this.backImg, this.logoImg, this.main, this.mobile, this.invite, this.quick, this.flashLoginEnable});
  24. LoginStyleModel.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 = json['mobile'] != null ? new Mobile.fromJson(json['mobile']) : null;
  29. invite = json['invite'] != null ? new Invite.fromJson(json['invite']) : null;
  30. quick = json['quick'] != null ? new Quick.fromJson(json['quick']) : null;
  31. flashLoginEnable = json['flash_login_enable'];
  32. }
  33. Map<String, dynamic> toJson() {
  34. final Map<String, dynamic> data = new Map<String, dynamic>();
  35. data['back_img'] = this.backImg;
  36. data['logo_img'] = this.logoImg;
  37. if (this.main != null) {
  38. data['main'] = this.main.toJson();
  39. }
  40. if (this.mobile != null) {
  41. data['mobile'] = this.mobile.toJson();
  42. }
  43. if (this.invite != null) {
  44. data['invite'] = this.invite.toJson();
  45. }
  46. if (this.quick != null) {
  47. data['quick'] = this.quick.toJson();
  48. }
  49. data['flash_login_enable'] = this.flashLoginEnable;
  50. return data;
  51. }
  52. }
  53. class Main {
  54. String appBarTitle;
  55. String appBarTitleColor;
  56. String appBarBgColor;
  57. String appNameImg;
  58. String backgroundImg;
  59. List<Agreements> agreements;
  60. List<ImportanceLogin> importanceLogin;
  61. String otherIconsTitle;
  62. String otherIconsTitleColor;
  63. String otherExpansionIcon;
  64. List<BottomIcons> bottomIcons;
  65. Main(
  66. {this.appBarTitle,
  67. this.appBarTitleColor,
  68. this.appBarBgColor,
  69. this.appNameImg,
  70. this.backgroundImg,
  71. this.agreements,
  72. this.importanceLogin,
  73. this.otherIconsTitle,
  74. this.otherIconsTitleColor,
  75. this.otherExpansionIcon,
  76. this.bottomIcons});
  77. Main.fromJson(Map<String, dynamic> json) {
  78. appBarTitle = json['app_bar_title'];
  79. appBarTitleColor = json['app_bar_title_color'];
  80. appBarBgColor = json['app_bar_bg_color'];
  81. appNameImg = json['app_name_img'];
  82. backgroundImg = json['background_img'];
  83. if (json['agreements'] != null) {
  84. agreements = new List<Agreements>();
  85. json['agreements'].forEach((v) {
  86. agreements.add(new Agreements.fromJson(v));
  87. });
  88. }
  89. if (json['importance_login'] != null) {
  90. importanceLogin = new List<ImportanceLogin>();
  91. json['importance_login'].forEach((v) {
  92. importanceLogin.add(new ImportanceLogin.fromJson(v));
  93. });
  94. }
  95. otherIconsTitle = json['other_icons_title'];
  96. otherIconsTitleColor = json['other_icons_title_color'];
  97. otherExpansionIcon = json['other_expansion_icon'];
  98. if (json['bottom_icons'] != null) {
  99. bottomIcons = new List<BottomIcons>();
  100. json['bottom_icons'].forEach((v) {
  101. bottomIcons.add(new BottomIcons.fromJson(v));
  102. });
  103. }
  104. }
  105. Map<String, dynamic> toJson() {
  106. final Map<String, dynamic> data = new Map<String, dynamic>();
  107. data['app_bar_title'] = this.appBarTitle;
  108. data['app_bar_title_color'] = this.appBarTitleColor;
  109. data['app_bar_bg_color'] = this.appBarBgColor;
  110. data['app_name_img'] = this.appNameImg;
  111. data['background_img'] = this.backgroundImg;
  112. if (this.agreements != null) {
  113. data['agreements'] = this.agreements.map((v) => v.toJson()).toList();
  114. }
  115. if (this.importanceLogin != null) {
  116. data['importance_login'] = this.importanceLogin.map((v) => v.toJson()).toList();
  117. }
  118. data['other_icons_title'] = this.otherIconsTitle;
  119. data['other_icons_title_color'] = this.otherIconsTitleColor;
  120. data['other_expansion_icon'] = this.otherExpansionIcon;
  121. if (this.bottomIcons != null) {
  122. data['bottom_icons'] = this.bottomIcons.map((v) => v.toJson()).toList();
  123. }
  124. return data;
  125. }
  126. }
  127. class Agreements {
  128. String text;
  129. String textColor;
  130. String url;
  131. Agreements({this.text, this.textColor, this.url});
  132. Agreements.fromJson(Map<String, dynamic> json) {
  133. text = json['text'];
  134. textColor = json['text_color'];
  135. url = json['url'];
  136. }
  137. Map<String, dynamic> toJson() {
  138. final Map<String, dynamic> data = new Map<String, dynamic>();
  139. data['text'] = this.text;
  140. data['text_color'] = this.textColor;
  141. data['url'] = this.url;
  142. return data;
  143. }
  144. }
  145. class ImportanceLogin {
  146. String type;
  147. String btnText;
  148. String btnTextColor;
  149. String btnBorderColor;
  150. String btnBgColor;
  151. String btnMobileIcon;
  152. ImportanceLogin({this.type, this.btnText, this.btnTextColor, this.btnBorderColor, this.btnBgColor, this.btnMobileIcon});
  153. ImportanceLogin.fromJson(Map<String, dynamic> json) {
  154. type = json['type'];
  155. btnText = json['btn_text'];
  156. btnTextColor = json['btn_text_color'];
  157. btnBorderColor = json['btn_border_color'];
  158. btnBgColor = json['btn_bg_color'];
  159. btnMobileIcon = json['btn_mobile_icon'];
  160. }
  161. Map<String, dynamic> toJson() {
  162. final Map<String, dynamic> data = new Map<String, dynamic>();
  163. data['type'] = this.type;
  164. data['btn_text'] = this.btnText;
  165. data['btn_text_color'] = this.btnTextColor;
  166. data['btn_border_color'] = this.btnBorderColor;
  167. data['btn_bg_color'] = this.btnBgColor;
  168. data['btn_mobile_icon'] = this.btnMobileIcon;
  169. return data;
  170. }
  171. }
  172. class BottomIcons {
  173. String type;
  174. String img;
  175. BottomIcons({this.type, this.img});
  176. BottomIcons.fromJson(Map<String, dynamic> json) {
  177. type = json['type'];
  178. img = json['img'];
  179. }
  180. Map<String, dynamic> toJson() {
  181. final Map<String, dynamic> data = new Map<String, dynamic>();
  182. data['type'] = this.type;
  183. data['img'] = this.img;
  184. return data;
  185. }
  186. }
  187. class Mobile {
  188. String vcodeTime;
  189. String appBarTitle;
  190. String appBarTitleColor;
  191. String appBarBgColor;
  192. String title;
  193. String titleColor;
  194. String inputHintColor;
  195. String inputTextColor;
  196. String inputBgColor;
  197. String inputMobileIcon;
  198. String inputMobileHintText;
  199. String inputVcodeIcon;
  200. String inputVcodeHintText;
  201. String inputOtherCodeIcon;
  202. String inputOtherCodeIconText;
  203. String inputPassIcon;
  204. String inputPassHintText;
  205. String btnLoginText;
  206. String btnLoginTextColor;
  207. String btnLoginBgColor;
  208. String btnLoginShadowColor;
  209. String btnLoginBanBgColor;
  210. String btnLoginBanTextColor;
  211. String btnVcodeText;
  212. String btnVcodeTextColor;
  213. String btnVcodeBgColor;
  214. String btnVcodeBanTextColor;
  215. String btnVcodeBanBgColor;
  216. String textUsePassTip;
  217. String textUseVcodeTip;
  218. String textUsePassTipColor;
  219. String textUseVcodeTipColor;
  220. String textBottomTip;
  221. String textBottomTipColor;
  222. String protocolSelectIcon;
  223. String protocolUnselectIcon;
  224. List<Protocol> protocol;
  225. String thirdPartyLoginTitle;
  226. String thirdPartyLoginAppBarTitle;
  227. Mobile({
  228. this.vcodeTime,
  229. this.appBarTitle,
  230. this.appBarTitleColor,
  231. this.appBarBgColor,
  232. this.title,
  233. this.titleColor,
  234. this.inputHintColor,
  235. this.inputTextColor,
  236. this.inputBgColor,
  237. this.inputMobileIcon,
  238. this.inputMobileHintText,
  239. this.inputVcodeIcon,
  240. this.inputVcodeHintText,
  241. this.inputOtherCodeIcon,
  242. this.inputOtherCodeIconText,
  243. this.inputPassIcon,
  244. this.inputPassHintText,
  245. this.btnLoginText,
  246. this.btnLoginTextColor,
  247. this.btnLoginBgColor,
  248. this.btnLoginShadowColor,
  249. this.btnLoginBanBgColor,
  250. this.btnLoginBanTextColor,
  251. this.btnVcodeText,
  252. this.btnVcodeTextColor,
  253. this.btnVcodeBgColor,
  254. this.btnVcodeBanTextColor,
  255. this.btnVcodeBanBgColor,
  256. this.textUsePassTip,
  257. this.textUseVcodeTip,
  258. this.textUsePassTipColor,
  259. this.textUseVcodeTipColor,
  260. this.textBottomTip,
  261. this.textBottomTipColor,
  262. this.protocolSelectIcon,
  263. this.protocolUnselectIcon,
  264. this.protocol,
  265. this.thirdPartyLoginAppBarTitle,
  266. this.thirdPartyLoginTitle,
  267. });
  268. Mobile.fromJson(Map<String, dynamic> json) {
  269. vcodeTime = json['vcode_time'];
  270. appBarTitle = json['app_bar_title'];
  271. appBarTitleColor = json['app_bar_title_color'];
  272. appBarBgColor = json['app_bar_bg_color'];
  273. title = json['title'];
  274. titleColor = json['title_color'];
  275. inputHintColor = json['input_hint_color'];
  276. inputTextColor = json['input_text_color'];
  277. inputBgColor = json['input_bg_color'];
  278. inputMobileIcon = json['input_mobile_icon'];
  279. inputMobileHintText = json['input_mobile_hint_text'];
  280. inputVcodeIcon = json['input_vcode_icon'];
  281. inputVcodeHintText = json['input_vcode_hint_text'];
  282. inputOtherCodeIcon = json['input_other_code_icon'];
  283. inputOtherCodeIconText = json['input_other_code_icon_text'];
  284. inputPassIcon = json['input_pass_icon'];
  285. inputPassHintText = json['input_pass_hint_text'];
  286. btnLoginText = json['btn_login_text'];
  287. btnLoginTextColor = json['btn_login_text_color'];
  288. btnLoginBgColor = json['btn_login_bg_color'];
  289. btnLoginShadowColor = json['btn_login_shadow_color'];
  290. btnLoginBanBgColor = json['btn_login_ban_bg_color'];
  291. btnLoginBanTextColor = json['btn_login_ban_text_color'];
  292. btnVcodeText = json['btn_vcode_text'];
  293. btnVcodeTextColor = json['btnVcodeTextColor'];
  294. btnVcodeBgColor = json['btn_vcode_bg_color'];
  295. btnVcodeBanTextColor = json['btn_vcode_ban_text_color'];
  296. btnVcodeBanBgColor = json['btn_vcode_ban_bg_color'];
  297. textUsePassTip = json['text_use_pass_tip'];
  298. textUseVcodeTip = json['text_use_vcode_tip'];
  299. textUsePassTipColor = json['text_use_pass_tip_color'];
  300. textUseVcodeTipColor = json['text_use_vcode_tip_color'];
  301. textBottomTip = json['text_bottom_tip'];
  302. textBottomTipColor = json['text_bottom_tip_color'];
  303. protocolSelectIcon = json['protocol_select_icon'];
  304. protocolUnselectIcon = json['protocol_unselect_icon'];
  305. thirdPartyLoginAppBarTitle = json['third_party_login_app_bar_title'];
  306. thirdPartyLoginTitle = json['third_party_login_title'];
  307. if (json['protocol'] != null) {
  308. protocol = new List<Protocol>();
  309. json['protocol'].forEach((v) {
  310. protocol.add(new Protocol.fromJson(v));
  311. });
  312. }
  313. }
  314. Map<String, dynamic> toJson() {
  315. final Map<String, dynamic> data = new Map<String, dynamic>();
  316. data['vcode_time'] = this.vcodeTime;
  317. data['third_party_login_app_bar_title'] = this.thirdPartyLoginAppBarTitle;
  318. data['third_party_login_title'] = this.thirdPartyLoginTitle;
  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. }