UpgradeInfo.fromJson constructor

UpgradeInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory UpgradeInfo.fromJson(Map<String, dynamic> json) {
  return UpgradeInfo._(
    id: json['id'] = '',
    title: json['title'] = '',
    newFeature: json['newFeature'] = '',
    publishTime: json['publishTime'] = 0,
    publishType: json['publishType'] = 0,
    upgradeType: json['upgradeType'] = 1,
    popTimes: json['popTimes'] = 0,
    popInterval: json['popInterval'] = 0,
    versionCode: json['versionCode'],
    versionName: json['versionName'] = '',
    apkMd5: json['apkMd5'],
    apkUrl: json['apkUrl'],
    fileSize: json['fileSize'],
    imageUrl: json['imageUrl'],
    updateType: json['updateType'],
  );
}