fromMap static method
override
Construct from Map.
Implementation
static NotificationGroupType? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'notificationGroupTypeCalls':
return NotificationGroupTypeCalls.fromMap(_map);
case 'notificationGroupTypeMentions':
return NotificationGroupTypeMentions.fromMap(_map);
case 'notificationGroupTypeSecretChat':
return NotificationGroupTypeSecretChat.fromMap(_map);
case 'notificationGroupTypeMessages':
return NotificationGroupTypeMessages.fromMap(_map);
case null:
default:
return null;
}
}