class AppUpdateModel {
  /// Android的第三方URL更新链接 例如:应用宝
  String appDownloadThirdpartyUrl;

  /// 更新的下载链接(Android为应用内的下载链接,IOS为商店链接)
  String appDownloadUrl;

  /// 新版本号码
  String appVersion;

  /// 新版本昵称
  String appVersionName;

  /// 更新内容
  String content;

  /// 是否显示提示更新弹窗
  String dialog;

  /// 是否强制更新
  String isForce;

  /// 是否可以忽略此版本
  String isIgnore;

  /// 是否优先使用第三方更新
  String isThirdparty;

  /// 提示
  String tip;

  AppUpdateModel({
    this.appDownloadThirdpartyUrl,
    this.appDownloadUrl,
    this.appVersion,
    this.appVersionName,
    this.dialog,
    this.isForce,
    this.isThirdparty,
    this.tip,
    this.content,
  });

  AppUpdateModel.fromJson(Map<String, dynamic> json) {
    appDownloadThirdpartyUrl = json['app_download_thirdparty_url'];
    appDownloadUrl = json['app_download_url'];
    appVersion = json['app_version'];
    appVersionName = json['app_version_name'];
    dialog = json['dialog'];
    isForce = json['is_force'];
    isIgnore = json['is_ignore'];
    isThirdparty = json['is_thirdparty'];
    tip = json['tip'];
    content = json['content'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['app_download_thirdparty_url'] = this.appDownloadThirdpartyUrl;
    data['app_download_url'] = this.appDownloadUrl;
    data['app_version'] = this.appVersion;
    data['app_version_name'] = this.appVersionName;
    data['dialog'] = this.dialog;
    data['is_force'] = this.isForce;
    data['is_ignore'] = this.isIgnore;
    data['is_thirdparty'] = this.isThirdparty;
    data['tip'] = this.tip;
    data['content'] = this.content;
    return data;
  }
}