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