fromJson static method
Inherited by: ReplyMarkupForceReply ReplyMarkupInlineKeyboard ReplyMarkupRemoveKeyboard ReplyMarkupShowKeyboard
Implementation
static ReplyMarkupInlineKeyboard? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return ReplyMarkupInlineKeyboard(
rows: List<List<InlineKeyboardButton>>.from(
tdListFromJson(json['rows'])
.map(
(item) => List<InlineKeyboardButton>.from(
tdListFromJson(json['List<InlineKeyboardButton>'])
.map(
(item) =>
InlineKeyboardButton.fromJson(tdMapFromJson(item)),
)
.whereType<InlineKeyboardButton>(),
),
)
.whereType<List<InlineKeyboardButton>>(),
),
);
}