api/internal/nudge/nudge_parser library
Classes
- NudgeParser
-
Decodes a nudge
templateConfig({ container, layout }) into the pure NudgeConfig model.
Functions
-
parseNudgeColor(
String hex) → Color? -
Parses
#RGB/#RRGGBB/#AARRGGBB; empty/invalid → null. The campaign colour format, shared by every surface that reads one.