parseList static method

List<Source> parseList(
  1. dynamic list
)

Implementation

static List<Source> parseList(dynamic list) {
  if (list == null || list is! List || list.isEmpty) return [];
  return list.map((e) => Source.fromJson(e)).toList();
}