toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (frequency != null) {
buffer.writeAll(['"frequency":', frequency?.toJSON(), ','], '');
}
if (gapBetweenNotes != null) {
buffer
.writeAll(['"gapBetweenNotes":', gapBetweenNotes?.toJSON(), ','], '');
}
if (highpass != null) {
buffer.writeAll(['"highpass":', highpass?.toJSON(), ','], '');
}
if (lowpass != null) {
buffer.writeAll(['"lowpass":', lowpass?.toJSON(), ','], '');
}
if (noteDuration != null) {
buffer.writeAll(['"noteDuration":', noteDuration?.toJSON(), ','], '');
}
if (pan != null) {
buffer.writeAll(['"pan":', pan?.toJSON(), ','], '');
}
if (pitch != null) {
buffer.writeAll(['"pitch":', pitch?.toJSON(), ','], '');
}
if (playDelay != null) {
buffer.writeAll(['"playDelay":', playDelay?.toJSON(), ','], '');
}
if (time != null) {
buffer.writeAll(['"time":', time?.toJSON(), ','], '');
}
if (tremolo != null) {
buffer.writeAll(['"tremolo":', tremolo?.toJSON(), ','], '');
}
if (volume != null) {
buffer.writeAll(['"volume":', volume?.toJSON(), ','], '');
}
}