listFromJsonArray static method

List<KeyboardButton> listFromJsonArray(
  1. List json
)

Creates a list of object from a json array

Implementation

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