listOfListsFromJsonArray static method

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

Creates a list of list of object from a json array

Implementation

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