toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (afterUpdate != null) {
buffer.writeAll(['"afterUpdate":', jsonEncode(afterUpdate), ','], '');
}
if (beforePlay != null) {
buffer.writeAll(['"beforePlay":', jsonEncode(beforePlay), ','], '');
}
if (beforeUpdate != null) {
buffer.writeAll(['"beforeUpdate":', jsonEncode(beforeUpdate), ','], '');
}
if (onBoundaryHit != null) {
buffer.writeAll(['"onBoundaryHit":', jsonEncode(onBoundaryHit), ','], '');
}
if (onEnd != null) {
buffer.writeAll(['"onEnd":', jsonEncode(onEnd), ','], '');
}
if (onPlay != null) {
buffer.writeAll(['"onPlay":', jsonEncode(onPlay), ','], '');
}
if (onSeriesEnd != null) {
buffer.writeAll(['"onSeriesEnd":', jsonEncode(onSeriesEnd), ','], '');
}
if (onSeriesStart != null) {
buffer.writeAll(['"onSeriesStart":', jsonEncode(onSeriesStart), ','], '');
}
if (onStop != null) {
buffer.writeAll(['"onStop":', jsonEncode(onStop), ','], '');
}
}