toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (mapFunction != null) {
buffer.writeAll(['"mapFunction":', jsonEncode(mapFunction), ','], '');
}
if (mapTo != null) {
buffer.writeAll(['"mapTo":', jsonEncode(mapTo), ','], '');
}
if (max != null) {
buffer.writeAll(['"max":', max, ','], '');
}
if (min != null) {
buffer.writeAll(['"min":', min, ','], '');
}
if (value != null) {
buffer.writeAll(['"value":', value, ','], '');
}
if (within != null) {
buffer.writeAll(['"within":', jsonEncode(within), ','], '');
}
}