DownloadServiceItem.fromJson constructor
DownloadServiceItem.fromJson(
- Map<String, dynamic> json
)
Implementation
DownloadServiceItem.fromJson(Map<String, dynamic> json) {
h5Path = json['h5Path'];
zipUrl = LocalServerConfiguration.downloadUrl(json['zipUrl']);
isCompress = json['isCompress'];
downloadCount = json['downloadCount'];
loadState = LoadStateType.values[json['loadState'] ?? 0];
if (json['filePath'] != null && json['filePath'] is List) {
filePath = json['filePath'].cast<String>();
}
version = json['version'];
}