Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (animation != null) {
buffer.writeAll(['"animation":', animation?.toJSON(), ','], '');
}
if (backgroundColor != null) {
buffer.writeAll(
['"backgroundColor":', jsonEncode(backgroundColor), ','], '');
}
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderRadius != null) {
buffer.writeAll(['"borderRadius":', borderRadius, ','], '');
}
if (borderWidth != null) {
buffer.writeAll(['"borderWidth":', borderWidth, ','], '');
}
if (changeDecimals != null) {
buffer.writeAll(['"changeDecimals":', changeDecimals, ','], '');
}
if (className != null) {
buffer.writeAll(['"className":', jsonEncode(className), ','], '');
}
if (clusterFormat != null) {
buffer.writeAll(['"clusterFormat":', jsonEncode(clusterFormat), ','], '');
}
if (crosshairs != null) {
buffer.writeAll(['"crosshairs":', crosshairs, ','], '');
}
if (dateTimeLabelFormats != null) {
buffer.writeAll(
['"dateTimeLabelFormats":', dateTimeLabelFormats?.toJSON(), ','], '');
}
if (distance != null) {
buffer.writeAll(['"distance":', distance, ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (fixed != null) {
buffer.writeAll(['"fixed":', fixed, ','], '');
}
if (followPointer != null) {
buffer.writeAll(['"followPointer":', followPointer, ','], '');
}
if (followTouchMove != null) {
buffer.writeAll(['"followTouchMove":', followTouchMove, ','], '');
}
if (footerFormat != null) {
buffer.writeAll(['"footerFormat":', jsonEncode(footerFormat), ','], '');
}
if (format != null) {
buffer.writeAll(['"format":', jsonEncode(format), ','], '');
}
if (formatter != null) {
buffer.writeAll(['"formatter":', formatter?.toJSON(), ','], '');
}
if (headerFormat != null) {
buffer.writeAll(['"headerFormat":', jsonEncode(headerFormat), ','], '');
}
if (headerShape != null) {
buffer.writeAll(['"headerShape":', jsonEncode(headerShape), ','], '');
}
if (hideDelay != null) {
buffer.writeAll(['"hideDelay":', hideDelay, ','], '');
}
if (nullFormat != null) {
buffer.writeAll(['"nullFormat":', jsonEncode(nullFormat), ','], '');
}
if (nullFormatter != null) {
buffer.writeAll(['"nullFormatter":', nullFormatter?.toJSON(), ','], '');
}
if (outside != null) {
buffer.writeAll(['"outside":', outside, ','], '');
}
if (padding != null) {
buffer.writeAll(['"padding":', padding, ','], '');
}
if (pointFormat != null) {
buffer.writeAll(['"pointFormat":', jsonEncode(pointFormat), ','], '');
}
if (pointFormatter != null) {
buffer.writeAll(['"pointFormatter":', pointFormatter?.toJSON(), ','], '');
}
if (position != null) {
buffer.writeAll(['"position":', position?.toJSON(), ','], '');
}
if (positioner != null) {
buffer.writeAll(['"positioner":', positioner?.toJSON(), ','], '');
}
if (shadow != null) {
buffer.write('"shadow":{');
for (var item in shadow!.entries) {
buffer.writeAll(['"', item.key, '":', jsonEncode(item.value), ','], '');
}
buffer.write('},');
}
if (shape != null) {
buffer.writeAll(['"shape":', jsonEncode(shape), ','], '');
}
if (shared != null) {
buffer.writeAll(['"shared":', shared, ','], '');
}
if (snap != null) {
buffer.writeAll(['"snap":', jsonEncode(snap), ','], '');
}
if (split != null) {
buffer.writeAll(['"split":', split, ','], '');
}
if (stickOnContact != null) {
buffer.writeAll(['"stickOnContact":', stickOnContact, ','], '');
}
if (style != null) {
buffer.writeAll(['"style":', style?.toJSON(), ','], '');
}
if (useHTML != null) {
buffer.writeAll(['"useHTML":', useHTML, ','], '');
}
if (valueDecimals != null) {
buffer.writeAll(['"valueDecimals":', valueDecimals, ','], '');
}
if (valuePrefix != null) {
buffer.writeAll(['"valuePrefix":', jsonEncode(valuePrefix), ','], '');
}
if (valueSuffix != null) {
buffer.writeAll(['"valueSuffix":', jsonEncode(valueSuffix), ','], '');
}
if (xDateFormat != null) {
buffer.writeAll(['"xDateFormat":', jsonEncode(xDateFormat), ','], '');
}
}