fromMap static method

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

Construct from Map.

Implementation

static ChatStatisticsAdministratorActionsInfo? 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 user_id = _map['user_id']! as int;
  var deleted_message_count = _map['deleted_message_count']! as int;
  var banned_user_count = _map['banned_user_count']! as int;
  var restricted_user_count = _map['restricted_user_count']! as int;
  return ChatStatisticsAdministratorActionsInfo(
    extra: extra,
    clientId: clientId,
    user_id: user_id,
    deleted_message_count: deleted_message_count,
    banned_user_count: banned_user_count,
    restricted_user_count: restricted_user_count,
  );
}