fromMap static method

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

Construct from Map.

Implementation

static RemoveNotificationGroup? 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 notification_group_id = _map['notification_group_id']! as int;
  var max_notification_id = _map['max_notification_id']! as int;
  return RemoveNotificationGroup(
    extra: extra,
    clientId: clientId,
    notification_group_id: notification_group_id,
    max_notification_id: max_notification_id,
  );
}