ReplyMarkupInlineKeyboard.fromJson constructor

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

Parse from a json

Implementation

factory ReplyMarkupInlineKeyboard.fromJson(Map<String, dynamic> json) => ReplyMarkupInlineKeyboard(
  rows: List<List<InlineKeyboardButton>>.from((json['rows'] ?? []).map((item) => List<InlineKeyboardButton>.from((item ?? []).map((innerItem) => InlineKeyboardButton.fromJson(innerItem)).toList())).toList()),
);