Map<String, dynamic> toMap() { return { "message": message, "okLabel": okLabel, "cancelLabel": cancelLabel, "handledByClient": handledByClient, "action": action?.index, }; }