InlineQueryResultsButtonType.fromJson constructor

InlineQueryResultsButtonType.fromJson(
  1. Map<String, dynamic> json
)

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();
  }
}