toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (from != null) {
buffer.writeAll(['"from":', from, ','], '');
}
if (orientations != null) {
buffer.writeAll(['"orientations":', orientations, ','], '');
}
if (to != null) {
buffer.writeAll(['"to":', to, ','], '');
}
}