SeriesPoint.fromMap constructor
SeriesPoint.fromMap(})
Implementation
factory SeriesPoint.fromMap(
Map<String, dynamic> map, {
String mapXKey = 'x',
String mapYKey = 'y',
String? mapLabelKey,
}) {
return SeriesPoint(
x: (map[mapXKey] as num).toDouble(),
y: (map[mapYKey] as num).toDouble(),
label: mapLabelKey != null ? map[mapLabelKey]?.toString() : null,
);
}