toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (annotationsOptions != null) {
buffer.writeAll(
['"annotationsOptions":', annotationsOptions?.toJSON(), ','], '');
}
if (bindings != null) {
buffer.writeAll(['"bindings":', bindings?.toJSON(), ','], '');
}
if (bindingsClassName != null) {
buffer.writeAll(
['"bindingsClassName":', jsonEncode(bindingsClassName), ','], '');
}
if (breadcrumbs != null) {
buffer.writeAll(['"breadcrumbs":', breadcrumbs?.toJSON(), ','], '');
}
if (buttonOptions != null) {
buffer.writeAll(['"buttonOptions":', buttonOptions?.toJSON(), ','], '');
}
if (events != null) {
buffer.writeAll(['"events":', events?.toJSON(), ','], '');
}
if (iconsURL != null) {
buffer.writeAll(['"iconsURL":', jsonEncode(iconsURL), ','], '');
}
if (menuItemHoverStyle != null) {
buffer.write('"menuItemHoverStyle":{');
for (var item in menuItemHoverStyle!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (menuItemStyle != null) {
buffer.write('"menuItemStyle":{');
for (var item in menuItemStyle!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (menuStyle != null) {
buffer.write('"menuStyle":{');
for (var item in menuStyle!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
}