InlineKeyboardButton.fromJson constructor

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

Parses a InlineKeyboardButton from TDLib JSON.

Implementation

factory InlineKeyboardButton.fromJson(Map<String, dynamic> json) =>
    InlineKeyboardButton(
      text: _readString(json['text']),
      type: _readObject(json['type'], InlineKeyboardButtonType.fromJson),
    );