listFromJsonArray static method

List<PollOption> listFromJsonArray(
  1. List json
)

Creates a list of object from a json array

Implementation

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