fromMap static method

RemoveAllFilesFromDownloads? fromMap(
  1. Map<String, dynamic>? _map
)
override

Construct from Map.

Implementation

static RemoveAllFilesFromDownloads? 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 only_active = _map['only_active']! as bool;
  var only_completed = _map['only_completed']! as bool;
  var delete_from_cache = _map['delete_from_cache']! as bool;
  return RemoveAllFilesFromDownloads(
    extra: extra,
    clientId: clientId,
    only_active: only_active,
    only_completed: only_completed,
    delete_from_cache: delete_from_cache,
  );
}