UpdateFileDownload.fromJson constructor
Parses a UpdateFileDownload from TDLib JSON.
Implementation
factory UpdateFileDownload.fromJson(Map<String, dynamic> json) =>
UpdateFileDownload(
fileId: _readInt(json['file_id']),
completeDate: _readInt(json['complete_date']),
isPaused: _readBool(json['is_paused']),
counts: _readObject(json['counts'], DownloadedFileCounts.fromJson),
extra: json['@extra'],
clientId: _readClientId(json['@client_id']),
);