toOptionsJSON method
Implementation
@override
void toOptionsJSON(StringBuffer buffer) {
super.toOptionsJSON(buffer);
if (affectsMapView != null) {
buffer.writeAll(['"affectsMapView":', affectsMapView, ','], '');
}
if (animation != null) {
buffer.writeAll(['"animation":', animation, ','], '');
}
if (colorByPoint != null) {
buffer.writeAll(['"colorByPoint":', colorByPoint, ','], '');
}
if (colorKey != null) {
buffer.writeAll(['"colorKey":', jsonEncode(colorKey), ','], '');
}
if (colors != null) {
buffer.write('"colors":[');
for (var item in colors!) {
buffer.writeAll([jsonEncode(item), ','], '');
}
buffer.write('],');
}
if (dataLabels != null) {
buffer.writeAll(['"dataLabels":', dataLabels?.toJSON(), ','], '');
}
if (id != null) {
buffer.writeAll(['"id":', jsonEncode(id), ','], '');
}
if (index != null) {
buffer.writeAll(['"index":', index, ','], '');
}
if (legendIndex != null) {
buffer.writeAll(['"legendIndex":', legendIndex, ','], '');
}
if (legendSymbol != null) {
buffer.writeAll(['"legendSymbol":', jsonEncode(legendSymbol), ','], '');
}
if (linecap != null) {
buffer.writeAll(['"linecap":', jsonEncode(linecap), ','], '');
}
if (mapData != null) {
buffer.writeAll(['"mapData":', jsonEncode(mapData), ','], '');
}
if (nullColor != null) {
buffer.writeAll(['"nullColor":', jsonEncode(nullColor), ','], '');
}
if (nullInteraction != null) {
buffer.writeAll(['"nullInteraction":', nullInteraction, ','], '');
}
if (states != null) {
buffer.writeAll(['"states":', states?.toJSON(), ','], '');
}
if (tooltip != null) {
buffer.writeAll(['"tooltip":', tooltip?.toJSON(), ','], '');
}
}