toJson method
Implementation
Map<String, dynamic> toJson() => {
if (title != null) 'title': title!.toJson(),
if (labels != null) 'labels': labels!.toJson(),
if (min != null) 'min': min,
if (max != null) 'max': max,
if (gridLineWidth != null) 'gridLineWidth': gridLineWidth,
};