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

571 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 appName;
  59. String backgroundImg;
  60. List<Agreements> agreements;
  61. List<ImportanceLogin> importanceLogin;
  62. String otherIconsTitle;
  63. String otherIconsTitleColor;
  64. String otherExpansionIcon;
  65. List<BottomIcons> bottomIcons;
  66. Main(
  67. {this.appBarTitle,
  68. this.appBarTitleColor,
  69. this.appBarBgColor,
  70. this.appNameImg,
  71. this.backgroundImg,
  72. this.agreements,
  73. this.importanceLogin,
  74. this.otherIconsTitle,
  75. this.otherIconsTitleColor,
  76. this.otherExpansionIcon,
  77. this.bottomIcons});
  78. Main.fromJson(Map<String, dynamic> json) {
  79. appBarTitle = json['app_bar_title'];
  80. appBarTitleColor = json['app_bar_title_color'];
  81. appBarBgColor = json['app_bar_bg_color'];
  82. appNameImg = json['app_name_img'];
  83. backgroundImg = json['background_img'];
  84. appName=json['app_name_cn'];
  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'] = this.importanceLogin.map((v) => v.toJson()).toList();
  119. }
  120. data['other_icons_title'] = this.otherIconsTitle;
  121. data['other_icons_title_color'] = this.otherIconsTitleColor;
  122. data['other_expansion_icon'] = this.otherExpansionIcon;
  123. if (this.bottomIcons != null) {
  124. data['bottom_icons'] = this.bottomIcons.map((v) => v.toJson()).toList();
  125. }
  126. return data;
  127. }
  128. }
  129. class Agreements {
  130. String text;
  131. String textColor;
  132. String url;
  133. Agreements({this.text, this.textColor, this.url});
  134. Agreements.fromJson(Map<String, dynamic> json) {
  135. text = json['text'];
  136. textColor = json['text_color'];
  137. url = json['url'];
  138. }
  139. Map<String, dynamic> toJson() {
  140. final Map<String, dynamic> data = new Map<String, dynamic>();
  141. data['text'] = this.text;
  142. data['text_color'] = this.textColor;
  143. data['url'] = this.url;
  144. return data;
  145. }
  146. }
  147. class ImportanceLogin {
  148. String type;
  149. String btnText;
  150. String btnTextColor;
  151. String btnBorderColor;
  152. String btnBgColor;
  153. String btnMobileIcon;
  154. ImportanceLogin({this.type, this.btnText, this.btnTextColor, this.btnBorderColor, this.btnBgColor, this.btnMobileIcon});
  155. ImportanceLogin.fromJson(Map<String, dynamic> json) {
  156. type = json['type'];
  157. btnText = json['btn_text'];
  158. btnTextColor = json['btn_text_color'];
  159. btnBorderColor = json['btn_border_color'];
  160. btnBgColor = json['btn_bg_color'];
  161. btnMobileIcon = json['btn_mobile_icon'];
  162. }
  163. Map<String, dynamic> toJson() {
  164. final Map<String, dynamic> data = new Map<String, dynamic>();
  165. data['type'] = this.type;
  166. data['btn_text'] = this.btnText;
  167. data['btn_text_color'] = this.btnTextColor;
  168. data['btn_border_color'] = this.btnBorderColor;
  169. data['btn_bg_color'] = this.btnBgColor;
  170. data['btn_mobile_icon'] = this.btnMobileIcon;
  171. return data;
  172. }
  173. }
  174. class BottomIcons {
  175. String type;
  176. String img;
  177. BottomIcons({this.type, this.img});
  178. BottomIcons.fromJson(Map<String, dynamic> json) {
  179. type = json['type'];
  180. img = json['img'];
  181. }
  182. Map<String, dynamic> toJson() {
  183. final Map<String, dynamic> data = new Map<String, dynamic>();
  184. data['type'] = this.type;
  185. data['img'] = this.img;
  186. return data;
  187. }
  188. }
  189. class Mobile {
  190. String vcodeTime;
  191. String appBarTitle;
  192. String appBarTitleColor;
  193. String appBarBgColor;
  194. String title;
  195. String titleColor;
  196. String inputHintColor;
  197. String inputTextColor;
  198. String inputBgColor;
  199. String inputMobileIcon;
  200. String inputMobileHintText;
  201. String inputVcodeIcon;
  202. String inputVcodeHintText;
  203. String inputOtherCodeIcon;
  204. String inputOtherCodeIconText;
  205. String inputPassIcon;
  206. String inputPassHintText;
  207. String btnLoginText;
  208. String btnLoginTextColor;
  209. String btnLoginBgColor;
  210. String btnLoginShadowColor;
  211. String btnLoginBanBgColor;
  212. String btnLoginBanTextColor;
  213. String btnVcodeText;
  214. String btnVcodeTextColor;
  215. String btnVcodeBgColor;
  216. String btnVcodeBanTextColor;
  217. String btnVcodeBanBgColor;
  218. String textUsePassTip;
  219. String textUseVcodeTip;
  220. String textUsePassTipColor;
  221. String textUseVcodeTipColor;
  222. String textBottomTip;
  223. String textBottomTipColor;
  224. String protocolSelectIcon;
  225. String protocolUnselectIcon;
  226. List<Protocol> protocol;
  227. String thirdPartyLoginTitle;
  228. String thirdPartyLoginAppBarTitle;
  229. Mobile({
  230. this.vcodeTime,
  231. this.appBarTitle,
  232. this.appBarTitleColor,
  233. this.appBarBgColor,
  234. this.title,
  235. this.titleColor,
  236. this.inputHintColor,
  237. this.inputTextColor,
  238. this.inputBgColor,
  239. this.inputMobileIcon,
  240. this.inputMobileHintText,
  241. this.inputVcodeIcon,
  242. this.inputVcodeHintText,
  243. this.inputOtherCodeIcon,
  244. this.inputOtherCodeIconText,
  245. this.inputPassIcon,
  246. this.inputPassHintText,
  247. this.btnLoginText,
  248. this.btnLoginTextColor,
  249. this.btnLoginBgColor,
  250. this.btnLoginShadowColor,
  251. this.btnLoginBanBgColor,
  252. this.btnLoginBanTextColor,
  253. this.btnVcodeText,
  254. this.btnVcodeTextColor,
  255. this.btnVcodeBgColor,
  256. this.btnVcodeBanTextColor,
  257. this.btnVcodeBanBgColor,
  258. this.textUsePassTip,
  259. this.textUseVcodeTip,
  260. this.textUsePassTipColor,
  261. this.textUseVcodeTipColor,
  262. this.textBottomTip,
  263. this.textBottomTipColor,
  264. this.protocolSelectIcon,
  265. this.protocolUnselectIcon,
  266. this.protocol,
  267. this.thirdPartyLoginAppBarTitle,
  268. this.thirdPartyLoginTitle,
  269. });
  270. Mobile.fromJson(Map<String, dynamic> json) {
  271. vcodeTime = json['vcode_time'];
  272. appBarTitle = json['app_bar_title'];
  273. appBarTitleColor = json['app_bar_title_color'];
  274. appBarBgColor = json['app_bar_bg_color'];
  275. title = json['title'];
  276. titleColor = json['title_color'];
  277. inputHintColor = json['input_hint_color'];
  278. inputTextColor = json['input_text_color'];
  279. inputBgColor = json['input_bg_color'];
  280. inputMobileIcon = json['input_mobile_icon'];
  281. inputMobileHintText = json['input_mobile_hint_text'];
  282. inputVcodeIcon = json['input_vcode_icon'];
  283. inputVcodeHintText = json['input_vcode_hint_text'];
  284. inputOtherCodeIcon = json['input_other_code_icon'];
  285. inputOtherCodeIconText = json['input_other_code_icon_text'];
  286. inputPassIcon = json['input_pass_icon'];
  287. inputPassHintText = json['input_pass_hint_text'];
  288. btnLoginText = json['btn_login_text'];
  289. btnLoginTextColor = json['btn_login_text_color'];
  290. btnLoginBgColor = json['btn_login_bg_color'];
  291. btnLoginShadowColor = json['btn_login_shadow_color'];
  292. btnLoginBanBgColor = json['btn_login_ban_bg_color'];
  293. btnLoginBanTextColor = json['btn_login_ban_text_color'];
  294. btnVcodeText = json['btn_vcode_text'];
  295. btnVcodeTextColor = json['btnVcodeTextColor'];
  296. btnVcodeBgColor = json['btn_vcode_bg_color'];
  297. btnVcodeBanTextColor = json['btn_vcode_ban_text_color'];
  298. btnVcodeBanBgColor = json['btn_vcode_ban_bg_color'];
  299. textUsePassTip = json['text_use_pass_tip'];
  300. textUseVcodeTip = json['text_use_vcode_tip'];
  301. textUsePassTipColor = json['text_use_pass_tip_color'];
  302. textUseVcodeTipColor = json['text_use_vcode_tip_color'];
  303. textBottomTip = json['text_bottom_tip'];
  304. textBottomTipColor = json['text_bottom_tip_color'];
  305. protocolSelectIcon = json['protocol_select_icon'];
  306. protocolUnselectIcon = json['protocol_unselect_icon'];
  307. thirdPartyLoginAppBarTitle = json['third_party_login_app_bar_title'];
  308. thirdPartyLoginTitle = json['third_party_login_title'];
  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['third_party_login_app_bar_title'] = this.thirdPartyLoginAppBarTitle;
  320. data['third_party_login_title'] = this.thirdPartyLoginTitle;
  321. data['app_bar_title'] = this.appBarTitle;
  322. data['app_bar_title_color'] = this.appBarTitleColor;
  323. data['app_bar_bg_color'] = this.appBarBgColor;
  324. data['title'] = this.title;
  325. data['title_color'] = this.titleColor;
  326. data['input_hint_color'] = this.inputHintColor;
  327. data['input_text_color'] = this.inputTextColor;
  328. data['input_bg_color'] = this.inputBgColor;
  329. data['input_mobile_icon'] = this.inputMobileIcon;
  330. data['input_mobile_hint_text'] = this.inputMobileHintText;
  331. data['input_vcode_icon'] = this.inputVcodeIcon;
  332. data['input_vcode_hint_text'] = this.inputVcodeHintText;
  333. data['input_other_code_icon'] = this.inputOtherCodeIcon;
  334. data['input_other_code_icon_text'] = this.inputOtherCodeIconText;
  335. data['input_pass_icon'] = this.inputPassIcon;
  336. data['input_pass_hint_text'] = this.inputPassHintText;
  337. data['btn_login_text'] = this.btnLoginText;
  338. data['btn_login_text_color'] = this.btnLoginTextColor;
  339. data['btn_login_bg_color'] = this.btnLoginBgColor;
  340. data['btn_login_shadow_color'] = this.btnLoginShadowColor;
  341. data['btn_login_ban_bg_color'] = this.btnLoginBanBgColor;
  342. data['btn_login_ban_text_color'] = this.btnLoginBanTextColor;
  343. data['btn_vcode_text'] = this.btnVcodeText;
  344. data['btnVcodeTextColor'] = this.btnVcodeTextColor;
  345. data['btn_vcode_bg_color'] = this.btnVcodeBgColor;
  346. data['btn_vcode_ban_text_color'] = this.btnVcodeBanTextColor;
  347. data['btn_vcode_ban_bg_color'] = this.btnVcodeBanBgColor;
  348. data['text_use_pass_tip'] = this.textUsePassTip;
  349. data['text_use_vcode_tip'] = this.textUseVcodeTip;
  350. data['text_use_pass_tip_color'] = this.textUsePassTipColor;
  351. data['text_use_vcode_tip_color'] = this.textUseVcodeTipColor;
  352. data['text_bottom_tip'] = this.textBottomTip;
  353. data['text_bottom_tip_color'] = this.textBottomTipColor;
  354. data['protocol_select_icon'] = this.protocolSelectIcon;
  355. data['protocol_unselect_icon'] = this.protocolUnselectIcon;
  356. if (this.protocol != null) {
  357. data['protocol'] = this.protocol.map((v) => v.toJson()).toList();
  358. }
  359. return data;
  360. }
  361. }
  362. class Invite {
  363. String appBarTitle;
  364. String appBarTitleColor;
  365. String appBarBgColor;
  366. String title;
  367. String titleColor;
  368. String inputHintColor;
  369. String inputBgColor;
  370. String btnBanBgColor;
  371. String btnBanTextColor;
  372. String inputInviteIcon;
  373. String inputInviteText;
  374. String inputInviteTextColor;
  375. String btnSubmitText;
  376. String btnSubmitTextColor;
  377. String btnSubmitBgColor;
  378. String btnSubmitShadowColor;
  379. Invite(
  380. {this.appBarTitle,
  381. this.appBarTitleColor,
  382. this.appBarBgColor,
  383. this.title,
  384. this.titleColor,
  385. this.inputHintColor,
  386. this.inputBgColor,
  387. this.btnBanBgColor,
  388. this.btnBanTextColor,
  389. this.inputInviteIcon,
  390. this.inputInviteText,
  391. this.inputInviteTextColor,
  392. this.btnSubmitText,
  393. this.btnSubmitTextColor,
  394. this.btnSubmitBgColor,
  395. this.btnSubmitShadowColor});
  396. Invite.fromJson(Map<String, dynamic> json) {
  397. appBarTitle = json['app_bar_title'];
  398. appBarTitleColor = json['app_bar_title_color'];
  399. appBarBgColor = json['app_bar_bg_color'];
  400. title = json['title'];
  401. titleColor = json['title_color'];
  402. inputHintColor = json['input_hint_color'];
  403. inputBgColor = json['input_bg_color'];
  404. btnBanBgColor = json['btn_ban_bg_color'];
  405. btnBanTextColor = json['btn_ban_text_color'];
  406. inputInviteIcon = json['input_invite_icon'];
  407. inputInviteText = json['input_invite_text'];
  408. inputInviteTextColor = json['input_invite_text_color'];
  409. btnSubmitText = json['btn_submit_text'];
  410. btnSubmitTextColor = json['btn_submit_text_color'];
  411. btnSubmitBgColor = json['btn_submit_bg_color'];
  412. btnSubmitShadowColor = json['btn_submit_shadow_color'];
  413. }
  414. Map<String, dynamic> toJson() {
  415. final Map<String, dynamic> data = new Map<String, dynamic>();
  416. data['app_bar_title'] = this.appBarTitle;
  417. data['app_bar_title_color'] = this.appBarTitleColor;
  418. data['app_bar_bg_color'] = this.appBarBgColor;
  419. data['title'] = this.title;
  420. data['title_color'] = this.titleColor;
  421. data['input_hint_color'] = this.inputHintColor;
  422. data['input_bg_color'] = this.inputBgColor;
  423. data['btn_ban_bg_color'] = this.btnBanBgColor;
  424. data['btn_ban_text_color'] = this.btnBanTextColor;
  425. data['input_invite_icon'] = this.inputInviteIcon;
  426. data['input_invite_text'] = this.inputInviteText;
  427. data['input_invite_text_color'] = this.inputInviteTextColor;
  428. data['btn_submit_text'] = this.btnSubmitText;
  429. data['btn_submit_text_color'] = this.btnSubmitTextColor;
  430. data['btn_submit_bg_color'] = this.btnSubmitBgColor;
  431. data['btn_submit_shadow_color'] = this.btnSubmitShadowColor;
  432. return data;
  433. }
  434. }
  435. class Quick {
  436. String appBarTitle;
  437. String appBarBgColor;
  438. String appBarTitleColor;
  439. String accountColor;
  440. String textTip;
  441. String textTipColor;
  442. String btnSubmitText;
  443. String btnSubmitTextColor;
  444. String btnSubmitBgColor;
  445. String btnSubmitShadowColor;
  446. String protocolSelectIcon;
  447. String protocolUnselectIcon;
  448. String textBottomTip;
  449. String textBottomTipColor;
  450. List<Protocol> protocol;
  451. Quick(
  452. {this.appBarTitle,
  453. this.appBarBgColor,
  454. this.appBarTitleColor,
  455. this.accountColor,
  456. this.textTip,
  457. this.textTipColor,
  458. this.btnSubmitText,
  459. this.btnSubmitTextColor,
  460. this.btnSubmitBgColor,
  461. this.btnSubmitShadowColor,
  462. this.protocolSelectIcon,
  463. this.protocolUnselectIcon,
  464. this.textBottomTip,
  465. this.textBottomTipColor,
  466. this.protocol});
  467. Quick.fromJson(Map<String, dynamic> json) {
  468. appBarTitle = json['app_bar_title'];
  469. appBarBgColor = json['app_bar_bg_color'];
  470. appBarTitleColor = json['app_bar_title_color'];
  471. accountColor = json['account_color'];
  472. textTip = json['text_tip'];
  473. textTipColor = json['text_tip_color'];
  474. btnSubmitText = json['btn_submit_text'];
  475. btnSubmitTextColor = json['btn_submit_text_color'];
  476. btnSubmitBgColor = json['btn_submit_bg_color'];
  477. btnSubmitShadowColor = json['btn_submit_shadow_color'];
  478. protocolSelectIcon = json['protocol_select_icon'];
  479. protocolUnselectIcon = json['protocol_unselect_icon'];
  480. textBottomTip = json['text_bottom_tip'];
  481. textBottomTipColor = json['text_bottom_tip_color'];
  482. if (json['protocol'] != null) {
  483. protocol = new List<Protocol>();
  484. json['protocol'].forEach((v) {
  485. protocol.add(new Protocol.fromJson(v));
  486. });
  487. }
  488. }
  489. Map<String, dynamic> toJson() {
  490. final Map<String, dynamic> data = new Map<String, dynamic>();
  491. data['app_bar_title'] = this.appBarTitle;
  492. data['app_bar_bg_color'] = this.appBarBgColor;
  493. data['app_bar_title_color'] = this.appBarTitleColor;
  494. data['account_color'] = this.accountColor;
  495. data['text_tip'] = this.textTip;
  496. data['text_tip_color'] = this.textTipColor;
  497. data['btn_submit_text'] = this.btnSubmitText;
  498. data['btn_submit_text_color'] = this.btnSubmitTextColor;
  499. data['btn_submit_bg_color'] = this.btnSubmitBgColor;
  500. data['btn_submit_shadow_color'] = this.btnSubmitShadowColor;
  501. data['protocol_select_icon'] = this.protocolSelectIcon;
  502. data['protocol_unselect_icon'] = this.protocolUnselectIcon;
  503. data['text_bottom_tip'] = this.textBottomTip;
  504. data['text_bottom_tip_color'] = this.textBottomTipColor;
  505. if (this.protocol != null) {
  506. data['protocol'] = this.protocol.map((v) => v.toJson()).toList();
  507. }
  508. return data;
  509. }
  510. }
  511. class Protocol {
  512. String text;
  513. String textColor;
  514. String url;
  515. Protocol({this.text, this.textColor, this.url});
  516. Protocol.fromJson(Map<String, dynamic> json) {
  517. text = json['text'];
  518. textColor = json['text_color'];
  519. url = json['url'];
  520. }
  521. Map<String, dynamic> toJson() {
  522. final Map<String, dynamic> data = new Map<String, dynamic>();
  523. data['text'] = this.text;
  524. data['text_color'] = this.textColor;
  525. data['url'] = this.url;
  526. return data;
  527. }
  528. }