fromMap static method
override
Construct from Map.
Implementation
static FileDownload? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var file_id = _map['file_id']! as int;
var message = Message.fromMap(_map['message'])!;
var add_date = _map['add_date']! as int;
var complete_date = _map['complete_date']! as int;
var is_paused = _map['is_paused']! as bool;
return FileDownload(
extra: extra,
clientId: clientId,
file_id: file_id,
message: message,
add_date: add_date,
complete_date: complete_date,
is_paused: is_paused,
);
}