listFrom static method

List<GShape> listFrom(
  1. List<Map<String, dynamic>>? jsonList
)

Implementation

static List<GShape> listFrom(List<Map<String, dynamic>>? jsonList) {
  if (jsonList == null || jsonList.isEmpty) return [];
  var list = jsonList.map(GShape.from).nonNulls.toList();
  return list;
}