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