InAppPayload class

The translation contract between CEP-specific data and Digia's rendering engine.

Plugin authors are responsible for mapping their CEP's native types into this struct inside their _mapToInAppPayload() private method. Digia core never imports CleverTap, MoEngage, or WebEngage types.

Constructors

InAppPayload({required String id, required Map<String, dynamic> content, required Map<String, dynamic> cepContext})
const

Properties

cepContext Map<String, dynamic>
CEP-specific metadata, opaque to Digia core.
final
content Map<String, dynamic>
Raw content map from the CEP campaign. Digia's rendering engine reads this to construct the experience. Schema is defined by the Digia dashboard campaign format.
final
hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for this campaign instance. Used for deduplication, invalidation, and event correlation.
final
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
toString() String
A string representation of this object.
inherited

Operators

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