BasicChartSeries.fromJson constructor

BasicChartSeries.fromJson(
  1. Map json_
)

Implementation

BasicChartSeries.fromJson(core.Map json_)
    : this(
        color: json_.containsKey('color')
            ? Color.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
        colorStyle: json_.containsKey('colorStyle')
            ? ColorStyle.fromJson(
                json_['colorStyle'] as core.Map<core.String, core.dynamic>)
            : null,
        dataLabel: json_.containsKey('dataLabel')
            ? DataLabel.fromJson(
                json_['dataLabel'] as core.Map<core.String, core.dynamic>)
            : null,
        lineStyle: json_.containsKey('lineStyle')
            ? LineStyle.fromJson(
                json_['lineStyle'] as core.Map<core.String, core.dynamic>)
            : null,
        pointStyle: json_.containsKey('pointStyle')
            ? PointStyle.fromJson(
                json_['pointStyle'] as core.Map<core.String, core.dynamic>)
            : null,
        series: json_.containsKey('series')
            ? ChartData.fromJson(
                json_['series'] as core.Map<core.String, core.dynamic>)
            : null,
        styleOverrides: json_.containsKey('styleOverrides')
            ? (json_['styleOverrides'] as core.List)
                .map((value) => BasicSeriesDataPointStyleOverride.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targetAxis: json_.containsKey('targetAxis')
            ? json_['targetAxis'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );