InlineQueryResultsButtonType.fromJson constructor
a InlineQueryResultsButtonType return type can be :
Implementation
factory InlineQueryResultsButtonType.fromJson(Map<String, dynamic> json) {
switch (json["@type"]) {
case InlineQueryResultsButtonTypeStartBot.CONSTRUCTOR:
return InlineQueryResultsButtonTypeStartBot.fromJson(json);
case InlineQueryResultsButtonTypeWebApp.CONSTRUCTOR:
return InlineQueryResultsButtonTypeWebApp.fromJson(json);
default:
return const InlineQueryResultsButtonType();
}
}