api/internal/nudge/nudge_parser library

Classes

NudgeParser
Decodes a nudge templateConfig 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.