toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (alpha != null) {
buffer.writeAll(['"alpha":', alpha, ','], '');
}
if (axisLabelPosition != null) {
buffer.writeAll(
['"axisLabelPosition":', jsonEncode(axisLabelPosition), ','], '');
}
if (beta != null) {
buffer.writeAll(['"beta":', beta, ','], '');
}
if (depth != null) {
buffer.writeAll(['"depth":', depth, ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (fitToPlot != null) {
buffer.writeAll(['"fitToPlot":', fitToPlot, ','], '');
}
if (frame != null) {
buffer.writeAll(['"frame":', frame?.toJSON(), ','], '');
}
if (viewDistance != null) {
buffer.writeAll(['"viewDistance":', viewDistance, ','], '');
}
}