fromMap static method

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

Construct from Map.

Implementation

static UpdateHavePendingNotifications? 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 have_delayed_notifications =
      _map['have_delayed_notifications']! as bool;
  var have_unreceived_notifications =
      _map['have_unreceived_notifications']! as bool;
  return UpdateHavePendingNotifications(
    extra: extra,
    clientId: clientId,
    have_delayed_notifications: have_delayed_notifications,
    have_unreceived_notifications: have_unreceived_notifications,
  );
}