toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (backgroundColor != null) {
buffer.writeAll(
['"backgroundColor":', jsonEncode(backgroundColor), ','], '');
}
if (borderColor != null) {
buffer.writeAll(['"borderColor":', jsonEncode(borderColor), ','], '');
}
if (borderRadius != null) {
buffer.writeAll(['"borderRadius":', borderRadius, ','], '');
}
if (enabled != null) {
buffer.writeAll(['"enabled":', enabled, ','], '');
}
if (height != null) {
buffer.writeAll(['"height":', height, ','], '');
}
if (lineWidth != null) {
buffer.writeAll(['"lineWidth":', lineWidth, ','], '');
}
if (symbols != null) {
buffer.write('"symbols":[');
for (var item in symbols!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (width != null) {
buffer.writeAll(['"width":', width, ','], '');
}
}