toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (chartMenuLabel != null) {
buffer
.writeAll(['"chartMenuLabel":', jsonEncode(chartMenuLabel), ','], '');
}
if (menuButtonLabel != null) {
buffer.writeAll(
['"menuButtonLabel":', jsonEncode(menuButtonLabel), ','], '');
}
}