toJson method
Implementation
Json toJson() => {
'background': _hex(background),
'grid': _hex(grid),
'text': _hex(text),
'crosshair': _hex(crosshair),
'tag': _hex(tag),
'tagText': _hex(tagText),
'separator': _hex(separator),
'fontSize': fontSize,
if (fontFamily != null) 'fontFamily': fontFamily,
if (fontFamilyFallback.isNotEmpty) 'fontFamilyFallback': fontFamilyFallback,
'topInset': topInset,
'ink': _hex(ink),
'tooltip': _hex(tooltip),
'tooltipText': _hex(tooltipText),
'tooltipBorder': _hex(tooltipBorder),
if (!identical(palette, graphPalette)) 'palette': [for (final c in palette) _hex(c)],
};