toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (animation != null) {
buffer.writeAll(['"animation":', animation?.toJSON(), ','], '');
}
if (brightness != null) {
buffer.writeAll(['"brightness":', brightness, ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (fillColor != null) {
buffer.writeAll(['"fillColor":', jsonEncode(fillColor), ','], '');
}
if (lineColor != null) {
buffer.writeAll(['"lineColor":', jsonEncode(lineColor), ','], '');
}
}