toJson method
Implementation
Map<String, dynamic> toJson() => {
'scale': scaleType.name,
'position': position.name,
if (label != null) 'label': label,
if (min != null) 'min': min,
if (max != null) 'max': max,
'tickCount': tickCount,
'logBase': logBase,
if (categories != null)
'categories': List<String>.from(categories!, growable: false),
'showAxisLine': showAxisLine,
'showTicks': showTicks,
'showGrid': showGrid,
'showLabels': showLabels,
'inverted': inverted,
};