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