fromMap static method
override
Construct from Map.
Implementation
static NotificationSettingsScope? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'notificationSettingsScopeChannelChats':
return NotificationSettingsScopeChannelChats.fromMap(_map);
case 'notificationSettingsScopePrivateChats':
return NotificationSettingsScopePrivateChats.fromMap(_map);
case 'notificationSettingsScopeGroupChats':
return NotificationSettingsScopeGroupChats.fromMap(_map);
case null:
default:
return null;
}
}