toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (className != null) {
buffer.writeAll(['"className":', jsonEncode(className), ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (data != null) {
buffer.write('"data":[');
for (var item in data!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (dataGrouping != null) {
buffer.writeAll(['"dataGrouping":', dataGrouping?.toJSON(), ','], '');
}
if (dataLabels != null) {
buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
}
if (fillOpacity != null) {
buffer.writeAll(['"fillOpacity":', fillOpacity, ','], '');
}
if (id != null) {
buffer.writeAll(['"id":', jsonEncode(id), ','], '');
}
if (lineColor != null) {
buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (marker != null) {
buffer.writeAll(['"marker":', marker?.toJSON(), ','], '');
}
if (pointRange != null) {
buffer.writeAll(['"pointRange":', pointRange?.toJSON(), ','], '');
}
if (threshold != null) {
buffer.writeAll(['"threshold":', threshold, ','], '');
}
if (type != null) {
buffer.writeAll(['"type":', jsonEncode(type), ','], '');
}
}