toJson method
Implementation
Map<String, Object?> toJson() => {
'background': argbToHex(background),
'surface': argbToHex(surface),
'displayText': argbToHex(displayText),
'previewText': argbToHex(previewText),
'error': argbToHex(error),
'caret': argbToHex(caret),
'focusRing': argbToHex(focusRing),
'accent': argbToHex(accent),
'digit': digit.toJson(),
'operator': operator.toJson(),
'equals': equals.toJson(),
'function': function.toJson(),
'shadow': argbToHex(shadow),
'highlight': argbToHex(highlight),
'seedColor': argbToHex(seedColor),
if (lcdGhost case final ghost?) 'lcdGhost': argbToHex(ghost),
};