fromMap static method

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

Construct from Map.

Implementation

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