toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (accessibility != null) {
json['accessibility'] = accessibility!.toJson();
}
if (allowPointSelect != null) {
json['allowPointSelect'] = allowPointSelect;
}
if (animation != null) {
json['animation'] = hcJsonValue(animation);
}
if (borderColor != null) {
json['borderColor'] = hcJsonValue(borderColor);
}
if (borderWidth != null) {
json['borderWidth'] = borderWidth;
}
if (centerInCategory != null) {
json['centerInCategory'] = centerInCategory;
}
if (className != null) {
json['className'] = className;
}
if (clip != null) {
json['clip'] = clip;
}
if (color != null) {
json['color'] = hcJsonValue(color);
}
if (colorByPoint != null) {
json['colorByPoint'] = colorByPoint;
}
if (colorIndex != null) {
json['colorIndex'] = colorIndex;
}
if (colors != null) {
json['colors'] = colors!.map((e) => hcJsonValue(e)).toList();
}
if (cursor != null) {
json['cursor'] = cursor;
}
if (curveFactor != null) {
json['curveFactor'] = curveFactor;
}
if (custom != null) {
json['custom'] = custom!.toJson();
}
if (dashStyle != null) {
json['dashStyle'] = dashStyle;
}
if (dataLabels != null) {
json['dataLabels'] = hcJsonValue(dataLabels);
}
if (dataMapping != null) {
json['dataMapping'] = dataMapping!.toJson();
}
if (description != null) {
json['description'] = description;
}
if (enableMouseTracking != null) {
json['enableMouseTracking'] = enableMouseTracking;
}
if (events != null) {
json['events'] = events!.toJson();
}
if (getExtremesFromAll != null) {
json['getExtremesFromAll'] = getExtremesFromAll;
}
if (inactiveOtherPoints != null) {
json['inactiveOtherPoints'] = inactiveOtherPoints;
}
if (includeInDataExport != null) {
json['includeInDataExport'] = includeInDataExport;
}
if (keys != null) {
json['keys'] = keys;
}
if (label != null) {
json['label'] = label!.toJson();
}
if (legendSymbol != null) {
json['legendSymbol'] = legendSymbol;
}
if (levels != null) {
json['levels'] = levels!.map((e) => e.toJson()).toList();
}
if (linkColorMode != null) {
json['linkColorMode'] = linkColorMode;
}
if (linkedTo != null) {
json['linkedTo'] = linkedTo;
}
if (linkOpacity != null) {
json['linkOpacity'] = linkOpacity;
}
if (minLinkWidth != null) {
json['minLinkWidth'] = minLinkWidth;
}
if (nodeAlignment != null) {
json['nodeAlignment'] = nodeAlignment;
}
if (nodeDistance != null) {
json['nodeDistance'] = hcJsonValue(nodeDistance);
}
if (nodePadding != null) {
json['nodePadding'] = nodePadding;
}
if (nodeWidth != null) {
json['nodeWidth'] = hcJsonValue(nodeWidth);
}
if (nullInteraction != null) {
json['nullInteraction'] = nullInteraction;
}
if (onPoint != null) {
json['onPoint'] = hcJsonValue(onPoint);
}
if (opacity != null) {
json['opacity'] = opacity;
}
if (point != null) {
json['point'] = point!.toJson();
}
if (pointDescriptionFormat != null) {
json['pointDescriptionFormat'] = hcJsonValue(pointDescriptionFormat);
}
if (pointDescriptionFormatter != null) {
json['pointDescriptionFormatter'] =
hcJsonValue(pointDescriptionFormatter);
}
if (relativeXValue != null) {
json['relativeXValue'] = relativeXValue;
}
if (selected != null) {
json['selected'] = selected;
}
if (showCheckbox != null) {
json['showCheckbox'] = showCheckbox;
}
if (showInLegend != null) {
json['showInLegend'] = showInLegend;
}
if (skipKeyboardNavigation != null) {
json['skipKeyboardNavigation'] = skipKeyboardNavigation;
}
if (sonification != null) {
json['sonification'] = sonification!.toJson();
}
if (states != null) {
json['states'] = states!.toJson();
}
if (stickyTracking != null) {
json['stickyTracking'] = stickyTracking;
}
if (tooltip != null) {
json['tooltip'] = tooltip!.toJson();
}
if (turboThreshold != null) {
json['turboThreshold'] = turboThreshold;
}
if (visible != null) {
json['visible'] = visible;
}
if (zoomEnabled != null) {
json['zoomEnabled'] = zoomEnabled;
}
if (id != null) {
json['id'] = id;
}
if (index != null) {
json['index'] = index;
}
if (legendIndex != null) {
json['legendIndex'] = legendIndex;
}
if (mapData != null) {
json['mapData'] = hcJsonValue(mapData);
}
if (name != null) {
json['name'] = name;
}
if (stack != null) {
json['stack'] = hcJsonValue(stack);
}
if (type != null) {
json['type'] = type;
}
if (xAxis != null) {
json['xAxis'] = hcJsonValue(xAxis);
}
if (yAxis != null) {
json['yAxis'] = hcJsonValue(yAxis);
}
if (zIndex != null) {
json['zIndex'] = zIndex;
}
if (borderRadius != null) {
json['borderRadius'] = hcJsonValue(borderRadius);
}
if (data != null) {
json['data'] = hcJsonValue(data);
}
if (dataParser != null) {
json['dataParser'] = hcJsonValue(dataParser);
}
if (dataURL != null) {
json['dataURL'] = hcJsonValue(dataURL);
}
if (depth != null) {
json['depth'] = hcJsonValue(depth);
}
if (edgeColor != null) {
json['edgeColor'] = hcJsonValue(edgeColor);
}
if (edgeWidth != null) {
json['edgeWidth'] = hcJsonValue(edgeWidth);
}
if (grouping != null) {
json['grouping'] = hcJsonValue(grouping);
}
if (groupPadding != null) {
json['groupPadding'] = hcJsonValue(groupPadding);
}
if (groupZPadding != null) {
json['groupZPadding'] = hcJsonValue(groupZPadding);
}
if (maxPointWidth != null) {
json['maxPointWidth'] = hcJsonValue(maxPointWidth);
}
if (nodes != null) {
json['nodes'] = nodes!.map((e) => e.toJson()).toList();
}
if (pointPadding != null) {
json['pointPadding'] = hcJsonValue(pointPadding);
}
if (pointWidth != null) {
json['pointWidth'] = hcJsonValue(pointWidth);
}
return json;
}