KeyboardButtonSourceWebApp.fromJson constructor

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

Parses a KeyboardButtonSourceWebApp from TDLib JSON.

Implementation

factory KeyboardButtonSourceWebApp.fromJson(Map<String, dynamic> json) =>
    KeyboardButtonSourceWebApp(
      botUserId: _readInt(json['bot_user_id']),
      preparedButtonId: _readString(json['prepared_button_id']),
    );