toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderDashStyle != null) {
buffer.writeAll(
['"borderDashStyle":', jsonEncode(borderDashStyle), ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (color != null) {
buffer.writeAll(['"color":', jsonEncode(color), ','], '');
}
if (colorVariation != null) {
buffer.writeAll(['"colorVariation":', colorVariation?.toJSON(), ','], '');
}
if (dataLabels != null) {
buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
}
if (layoutAlgorithm != null) {
buffer.writeAll(
['"layoutAlgorithm":', jsonEncode(layoutAlgorithm), ','], '');
}
if (layoutStartingDirection != null) {
buffer.writeAll([
'"layoutStartingDirection":',
jsonEncode(layoutStartingDirection),
','
], '');
}
if (level != null) {
buffer.writeAll(['"level":', level, ','], '');
}
}