fromMap static method

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

Construct from Map.

Implementation

static AutoDownloadSettingsPresets? 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 low = AutoDownloadSettings.fromMap(_map['low'])!;
  var medium = AutoDownloadSettings.fromMap(_map['medium'])!;
  var high = AutoDownloadSettings.fromMap(_map['high'])!;
  return AutoDownloadSettingsPresets(
    extra: extra,
    clientId: clientId,
    low: low,
    medium: medium,
    high: high,
  );
}