collect static method
Implementation
static List<DataPoint> collect(List<dynamic> list) {
final dataPoints = <DataPoint>[];
for (final Map<String, dynamic> map in list) {
final dataPoint = DataPoint.from(map);
dataPoints.add(dataPoint);
}
return dataPoints;
}