listFromJsonArray static method

List<User> listFromJsonArray(
  1. List json
)

Creates a list of object from a json array

Implementation

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