fromMap static method
override
Construct from Map.
Implementation
static InlineKeyboardButtonTypeSwitchInline? 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 query = _map['query']! as String;
var target_chat = TargetChat.fromMap(_map['target_chat'])!;
return InlineKeyboardButtonTypeSwitchInline(
extra: extra,
clientId: clientId,
query: query,
target_chat: target_chat,
);
}