UpdateInfo class

默认网络请求返回的结果格式

Constructors

UpdateInfo({int? code, String? msg, int? updateStatus, int? versionCode, String? versionName, String? uploadTime, String? modifyContent, String? downloadUrl, String? apkMd5, int? apkSize})

Properties

apkMd5 String?
Apk MD5值
final
apkSize int?
Apk大小【单位:KB】
final
code int?
请求返回码
final
downloadUrl String?
下载地址
final
hashCode int
The hash code for this object.
no setterinherited
modifyContent String?
APP变更的内容
final
msg String?
请求错误信息
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateStatus int?
更新的状态
final
uploadTime String?
APP更新时间
final
versionCode int?
最新版本号根据版本号来判别是否需要升级
final
versionName String?
最新APP版本的名称用于展示的版本名
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(String source) UpdateInfo?
fromMap(Map<String, dynamic>? map) UpdateInfo?