fromJson static method
Inherited by: InlineKeyboardButtonTypeBuy InlineKeyboardButtonTypeCallbackGame InlineKeyboardButtonTypeCallbackWithPassword InlineKeyboardButtonTypeCallback InlineKeyboardButtonTypeCopyText InlineKeyboardButtonTypeDisabled InlineKeyboardButtonTypeLoginUrl InlineKeyboardButtonTypeSwitchInline InlineKeyboardButtonTypeUrl InlineKeyboardButtonTypeUser InlineKeyboardButtonTypeWebApp
Implementation
static InlineKeyboardButtonTypeSwitchInline? fromJson(
Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return InlineKeyboardButtonTypeSwitchInline(
query: (json['query'] as String?) ?? '',
targetChat:
TargetChat.fromJson(json['target_chat'] as Map<String, dynamic>?)!,
);
}