fromMap static method
override
Construct from Map.
Implementation
static RemoteFile? 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 String;
var unique_id = _map['unique_id']! as String;
var is_uploading_active = _map['is_uploading_active']! as bool;
var is_uploading_completed = _map['is_uploading_completed']! as bool;
var uploaded_size = _map['uploaded_size']! as int;
return RemoteFile(
extra: extra,
clientId: clientId,
id: id,
unique_id: unique_id,
is_uploading_active: is_uploading_active,
is_uploading_completed: is_uploading_completed,
uploaded_size: uploaded_size,
);
}