DesignTokenCatalog class final

Typed design tokens available to Campaign Canvas parsers.

Legacy campaign surfaces never read this catalog. Colors retain both theme values for renderer-time resolution; typography resolves once while the Canvas model is parsed.

Constructors

DesignTokenCatalog.fromJson(Map<String, dynamic> json)
Decodes the catalog, skipping only the entries it cannot read.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveColor(Object? property) CampaignColor?
Resolves a color property, or returns null when it cannot be resolved.
resolveTypography(Object? property) CampaignTypography?
Resolves a typography property, or returns null to inherit the base style. Never throws — see resolveColor.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

empty → const DesignTokenCatalog