toJson method
Implementation
Map<String, Object?> toJson() => {
'title': title,
if (delta != null) 'delta': delta,
'points': points,
if (xTicks != null) 'xTicks': xTicks,
if (yTicks != null) 'yTicks': yTicks,
if (marker != null) 'marker': marker?.toJson(),
};