jsonToList static method

List<Candidates> jsonToList(
  1. List list
)

Implementation

static List<Candidates> jsonToList(List list) =>
    list.map((e) => Candidates.fromJson(e as Map<String, dynamic>)).toList();