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