fromMap static method

UpdateInfo? fromMap(
  1. Map<String, dynamic>? map
)

Implementation

static UpdateInfo? fromMap(Map<String, dynamic>? map) {
  if (map == null) return null;

  return UpdateInfo(
      code: map['Code']?.toInt(),
      msg: map['Msg'],
      updateStatus: map['UpdateStatus']?.toInt(),
      versionCode: map['VersionCode']?.toInt(),
      versionName: map['VersionName'],
      uploadTime: map['UploadTime'],
      modifyContent: map['ModifyContent'],
      downloadUrl: map['DownloadUrl'],
      apkMd5: map['ApkMd5'],
      apkSize: map['ApkSize']?.toInt());
}