@override dynamic toJSON(Color object, [SerializationContext? context]) { return object is Color ? colorToString(object) : object; }