fromMap static method

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

Construct from Map.

Implementation

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