fromJson static method
Implementation
static FileDownload? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return FileDownload(
fileId: (json['file_id'] as int?) ?? 0,
message: Message.fromJson(tdMapFromJson(json['message'])),
addDate: (json['add_date'] as int?) ?? 0,
completeDate: (json['complete_date'] as int?) ?? 0,
isPaused: (json['is_paused'] as bool?) ?? false,
);
}