USystemDownloadStatus.fromMap constructor

USystemDownloadStatus.fromMap(
  1. Map<Object?, Object?> map
)

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?,
);