InlineQueryResultsButton.fromJson constructor

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

Creates an InlineQueryResultsButton from a JSON object.

Implementation

factory InlineQueryResultsButton.fromJson(Map<String, dynamic> json) {
  return InlineQueryResultsButton(
    text: json['text'],
    webApp:
        json['web_app'] != null ? WebAppInfo.fromJson(json['web_app']) : null,
    startParameter: json['start_parameter'],
  );
}