fromJson static method

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

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>>(),
    ),
  );
}