toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (color != null) 'color': color!,
      if (colorStyle != null) 'colorStyle': colorStyle!,
      if (dataLabel != null) 'dataLabel': dataLabel!,
      if (lineStyle != null) 'lineStyle': lineStyle!,
      if (pointStyle != null) 'pointStyle': pointStyle!,
      if (series != null) 'series': series!,
      if (styleOverrides != null) 'styleOverrides': styleOverrides!,
      if (targetAxis != null) 'targetAxis': targetAxis!,
      if (type != null) 'type': type!,
    };