toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (animationLimit != null) {
buffer.writeAll(['"animationLimit":', animationLimit, ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (displayNegative != null) {
buffer.writeAll(['"displayNegative":', displayNegative, ','], '');
}
if (id != null) {
buffer.writeAll(['"id":', jsonEncode(id), ','], '');
}
if (index != null) {
buffer.writeAll(['"index":', index, ','], '');
}
if (joinBy != null) {
buffer.write('"joinBy":[');
for (var item in joinBy!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (legendIndex != null) {
buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
}
if (lineColor != null) {
buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (mapData != null) {
buffer.writeAll(['"mapData":', jsonEncode(mapData), ','], '');
}
if (marker != null) {
buffer.writeAll(['"marker":', jsonEncode(marker), ','], '');
}
if (maxSize != null) {
buffer.writeAll(['"maxSize":', jsonEncode(maxSize), ','], '');
}
if (minSize != null) {
buffer.writeAll(['"minSize":', jsonEncode(minSize), ','], '');
}
if (negativeColor != null) {
buffer.writeAll(['"negativeColor":', jsonEncode(negativeColor), ','], '');
}
if (sizeBy != null) {
buffer.writeAll(['"sizeBy":', jsonEncode(sizeBy), ','], '');
}
if (sizeByAbsoluteValue != null) {
buffer.writeAll(['"sizeByAbsoluteValue":', sizeByAbsoluteValue, ','], '');
}
if (tooltip != null) {
buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
}
if (zMax != null) {
buffer.writeAll(['"zMax":', zMax, ','], '');
}
if (zMin != null) {
buffer.writeAll(['"zMin":', zMin, ','], '');
}
if (zThreshold != null) {
buffer.writeAll(['"zThreshold":', zThreshold, ','], '');
}
if (zoomEnabled != null) {
buffer.writeAll(['"zoomEnabled":', zoomEnabled, ','], '');
}
}