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