fromMap static method
override
Construct from Map.
Implementation
static File? 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 id = _map['id']! as int;
var size = _map['size']! as int;
var expected_size = _map['expected_size']! as int;
var local = LocalFile.fromMap(_map['local'])!;
var remote = RemoteFile.fromMap(_map['remote'])!;
return File(
extra: extra,
clientId: clientId,
id: id,
size: size,
expected_size: expected_size,
local: local,
remote: remote,
);
}