基础库
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

app_update_model.dart 1.8 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. class AppUpdateModel {
  2. /// Android的第三方URL更新链接 例如:应用宝
  3. String appDownloadThirdpartyUrl;
  4. /// 更新的下载链接(Android为应用内的下载链接,IOS为商店链接)
  5. String appDownloadUrl;
  6. /// 新版本号码
  7. String appVersion;
  8. /// 新版本昵称
  9. String appVersionName;
  10. /// 更新内容
  11. String content;
  12. /// 是否显示提示更新弹窗
  13. String dialog;
  14. /// 是否强制更新
  15. String isForce;
  16. /// 是否可以忽略此版本
  17. String isIgnore;
  18. /// 是否优先使用第三方更新
  19. String isThirdparty;
  20. /// 提示
  21. String tip;
  22. AppUpdateModel({
  23. this.appDownloadThirdpartyUrl,
  24. this.appDownloadUrl,
  25. this.appVersion,
  26. this.appVersionName,
  27. this.dialog,
  28. this.isForce,
  29. this.isThirdparty,
  30. this.tip,
  31. this.content,
  32. });
  33. AppUpdateModel.fromJson(Map<String, dynamic> json) {
  34. appDownloadThirdpartyUrl = json['app_download_thirdparty_url'];
  35. appDownloadUrl = json['app_download_url'];
  36. appVersion = json['app_version'];
  37. appVersionName = json['app_version_name'];
  38. dialog = json['dialog'];
  39. isForce = json['is_force'];
  40. isIgnore = json['is_ignore'];
  41. isThirdparty = json['is_thirdparty'];
  42. tip = json['tip'];
  43. content = json['content'];
  44. }
  45. Map<String, dynamic> toJson() {
  46. final Map<String, dynamic> data = new Map<String, dynamic>();
  47. data['app_download_thirdparty_url'] = this.appDownloadThirdpartyUrl;
  48. data['app_download_url'] = this.appDownloadUrl;
  49. data['app_version'] = this.appVersion;
  50. data['app_version_name'] = this.appVersionName;
  51. data['dialog'] = this.dialog;
  52. data['is_force'] = this.isForce;
  53. data['is_ignore'] = this.isIgnore;
  54. data['is_thirdparty'] = this.isThirdparty;
  55. data['tip'] = this.tip;
  56. data['content'] = this.content;
  57. return data;
  58. }
  59. }