toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final Map<String, dynamic> json = <String, dynamic>{};
if (background != null) {
json['background'] = background!.toJson();
}
if (crosshairX != null) {
json['crosshairX'] = crosshairX!.toJson();
}
if (crosshairY != null) {
json['crosshairY'] = crosshairY!.toJson();
}
if (label != null) {
json['label'] = label!.toJson();
}
if (line != null) {
json['line'] = line!.toJson();
}
if (points != null) {
json['points'] = points!.map((e) => e.toJson()).toList();
}
if (selectType != null) {
json['selectType'] = selectType;
}
if (xAxis != null) {
json['xAxis'] = xAxis;
}
if (yAxis != null) {
json['yAxis'] = yAxis;
}
return json;
}