LineClickAddConfig.fromJson constructor

LineClickAddConfig.fromJson(
  1. Map<String, dynamic> j
)

Implementation

factory LineClickAddConfig.fromJson(
  Map<String, dynamic> j,
) => LineClickAddConfig(
  initialX: JsonValue.doubleList(j['initialX']) ?? const <double>[],
  initialY: JsonValue.doubleList(j['initialY']) ?? const <double>[],
  seriesName: JsonValue.string(j['seriesName']),
  title: j['title'] != null ? TitlesData.fromJson(j['title']) : null,
  tooltip: j['tooltip'] != null ? ChartTooltip.fromJson(j['tooltip']) : null,
  legend: j['legend'] != null ? ChartLegend.fromJson(j['legend']) : null,
  toolbox: j['toolbox'] != null ? ChartToolbox.fromJson(j['toolbox']) : null,
  grid: j['grid'] != null ? GridData.fromJson(j['grid']) : null,
);