USystemDownloadStatus.fromMap constructor
Implementation
factory USystemDownloadStatus.fromMap(Map<Object?, Object?> map) => USystemDownloadStatus(
id: "${map["id"]}",
state: "${map["state"] ?? "running"}",
received: (map["received"] as num?)?.toInt() ?? 0,
total: (map["total"] as num?)?.toInt() ?? -1,
path: map["path"] as String?,
error: map["error"] as String?,
);