DeviceTierConfig class

gamification.deviceTier from the SDK config: how a device is placed in high, mid or low. The defaults mirror the backend's DEFAULT_DEVICE_TIER (`backend/src/services/digia-engage/sdk/

Constructors

DeviceTierConfig({required Map<String, double> weights, required List<TierRule> rules, required String fallback})
const

Properties

fallback → String
final
hashCode → int
The hash code for this object.
no setterinherited
rules → List<TierRule>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
weights → Map<String, double>
final

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

Static Methods

parse(Object? json) → DeviceTierConfig
The config, or defaults when json is missing or malformed anywhere: a bad value falls back whole, never half-applies, and never throws. An operator this SDK does not know is kept and evaluates false, so a newer rule never matches on an older SDK. Port of Android DeviceTierConfig.parse.

Constants

defaults → const DeviceTierConfig
The backend defaults, the source of truth when the backend sent nothing.
tiers → const Set<String>
Tier names the backend and the prewarm gate understand.