fromMap static method
override
Construct from Map.
Implementation
static DownloadFile? 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 priority = _map['priority']! as int;
var offset = _map['offset']! as int;
var limit = _map['limit']! as int;
var synchronous = _map['synchronous']! as bool;
return DownloadFile(
extra: extra,
clientId: clientId,
file_id: file_id,
priority: priority,
offset: offset,
limit: limit,
synchronous: synchronous,
);
}