fromMap static method
override
Construct from Map.
Implementation
static AutosaveSettings? 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 private_chat_settings =
ScopeAutosaveSettings.fromMap(_map['private_chat_settings'])!;
var group_settings = ScopeAutosaveSettings.fromMap(_map['group_settings'])!;
var channel_settings =
ScopeAutosaveSettings.fromMap(_map['channel_settings'])!;
var exceptions = List<AutosaveSettingsException>.from(
(_map["exceptions"] ?? []).map(
(e) => AutosaveSettingsException.fromMap(e),
),
);
return AutosaveSettings(
extra: extra,
clientId: clientId,
private_chat_settings: private_chat_settings,
group_settings: group_settings,
channel_settings: channel_settings,
exceptions: exceptions,
);
}