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