toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (description != null) {
buffer.writeAll(['"description":', jsonEncode(description), ','], '');
}
if (descriptionFormat != null) {
buffer.writeAll(
['"descriptionFormat":', jsonEncode(descriptionFormat), ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (exposeAsGroupOnly != null) {
buffer.writeAll(['"exposeAsGroupOnly":', exposeAsGroupOnly, ','], '');
}
if (keyboardNavigation != null) {
buffer.writeAll(
['"keyboardNavigation":', keyboardNavigation?.toJSON(), ','], '');
}
if (point != null) {
buffer.writeAll(['"point":', point?.toJSON(), ','], '');
}
}