listFromJsonArray static method
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]));
}
Creates a list of object from a json array
static List<PollOption> listFromJsonArray(List<dynamic> json) {
return List.generate(json.length, (i) => PollOption.fromJson(json[i]));
}