ReplyMarkupInlineKeyboard.fromJson constructor

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

Parses a ReplyMarkupInlineKeyboard from TDLib JSON.

Implementation

factory ReplyMarkupInlineKeyboard.fromJson(Map<String, dynamic> json) =>
    ReplyMarkupInlineKeyboard(
      rows: _readList<List<InlineKeyboardButton>>(
        json['rows'],
        (e) => _readList<InlineKeyboardButton>(
          e,
          (e1) => _readObject(e1, InlineKeyboardButton.fromJson),
        ),
      ),
      forceReply: _readBool(json['force_reply']),
    );