listOfListsFromJsonArray static method

List<List<InlineKeyboardButton>> listOfListsFromJsonArray(
  1. List json
)

Creates a list of list of object from a json array

Implementation

static List<List<InlineKeyboardButton>> listOfListsFromJsonArray(
    List<dynamic> json) {
  return List.generate(
    json.length,
    (e) => List.generate(
      json[e].length,
      (i) => InlineKeyboardButton.fromJson(json[e][i]),
    ),
  );
}