fromMap static method
override
Construct from Map.
Implementation
static InlineKeyboardButtonType? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
switch (_) {
case 'inlineKeyboardButtonTypeCallback':
return InlineKeyboardButtonTypeCallback.fromMap(_map);
case 'inlineKeyboardButtonTypeUser':
return InlineKeyboardButtonTypeUser.fromMap(_map);
case 'inlineKeyboardButtonTypeSwitchInline':
return InlineKeyboardButtonTypeSwitchInline.fromMap(_map);
case 'inlineKeyboardButtonTypeLoginUrl':
return InlineKeyboardButtonTypeLoginUrl.fromMap(_map);
case 'inlineKeyboardButtonTypeCallbackGame':
return InlineKeyboardButtonTypeCallbackGame.fromMap(_map);
case 'inlineKeyboardButtonTypeBuy':
return InlineKeyboardButtonTypeBuy.fromMap(_map);
case 'inlineKeyboardButtonTypeCallbackWithPassword':
return InlineKeyboardButtonTypeCallbackWithPassword.fromMap(_map);
case 'inlineKeyboardButtonTypeWebApp':
return InlineKeyboardButtonTypeWebApp.fromMap(_map);
case 'inlineKeyboardButtonTypeUrl':
return InlineKeyboardButtonTypeUrl.fromMap(_map);
case null:
default:
return null;
}
}