DownloadProgressEvent.fromJson constructor
Implementation
factory DownloadProgressEvent.fromJson(Map<String, dynamic> json) {
return DownloadProgressEvent(
guid: json['guid'] as String,
totalBytes: json['totalBytes'] as num,
receivedBytes: json['receivedBytes'] as num,
state: DownloadProgressEventState.fromJson(json['state'] as String),
filePath: json.containsKey('filePath')
? json['filePath'] as String
: null,
);
}