@override String? toJson(Color? value) { if (value == null) return null; return value.toHex(leadingHashSign: false); }