toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (align != null) {
buffer.writeAll(['"align":', jsonEncode(align), ','], '');
}
if (buttonSpacing != null) {
buffer.writeAll(['"buttonSpacing":', buttonSpacing, ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (height != null) {
buffer.writeAll(['"height":', height, ','], '');
}
if (symbolFill != null) {
buffer.write('"symbolFill":{');
for (var item in symbolFill!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (symbolSize != null) {
buffer.writeAll(['"symbolSize":', symbolSize, ','], '');
}
if (symbolStroke != null) {
buffer.writeAll(['"symbolStroke":', jsonEncode(symbolStroke), ','], '');
}
if (symbolStrokeWidth != null) {
buffer.writeAll(['"symbolStrokeWidth":', symbolStrokeWidth, ','], '');
}
if (symbolX != null) {
buffer.writeAll(['"symbolX":', symbolX, ','], '');
}
if (symbolY != null) {
buffer.writeAll(['"symbolY":', symbolY, ','], '');
}
if (text != null) {
buffer.writeAll(['"text":', jsonEncode(text), ','], '');
}
if (theme != null) {
buffer.writeAll(['"theme":', theme?.toJSON(), ','], '');
}
if (useHTML != null) {
buffer.writeAll(['"useHTML":', useHTML, ','], '');
}
if (verticalAlign != null) {
buffer.writeAll(['"verticalAlign":', jsonEncode(verticalAlign), ','], '');
}
if (width != null) {
buffer.writeAll(['"width":', width, ','], '');
}
if (y != null) {
buffer.writeAll(['"y":', y, ','], '');
}
}