ItemDecision class
One decision per config item. value is already typed per type — server decodes JSON before emitting, so the SDK doesn't re-parse.
Constructors
- ItemDecision({required Object? value, required ConfigType type, required ItemReason reason, required int version})
-
const
-
ItemDecision.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- reason → ItemReason
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → ConfigType
-
final
- value → Object?
-
Stored as
dynamicon purpose — the wire shape is String for string, num for int/float, bool for bool, and arbitrary JSON (Map/List/primitive) for json. Callers use SankofaConfig.get<T> to get a strongly-typed value back.final - version → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override