DecisionSuccess class final
The success variant of DecisionResult.
- Inheritance
-
- Object
- DecisionResult
- DecisionSuccess
Constructors
-
DecisionSuccess({String? id, String? model, String? provider, required Map<
String, DecisionAnswer> answers, required DecisionUsage usage}) -
const
Properties
-
answers
→ Map<
String, DecisionAnswer> -
The typed answers keyed by question name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String?
-
The decision/generation id, when reported.
final
- isSuccess → bool
-
True on DecisionSuccess.
no setterinherited
- model → String?
-
The resolved model slug, when reported.
final
- provider → String?
-
The serving provider, when reported.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → DecisionUsage
-
Usage accounting.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
The structured JSON form surfaced to the model/user.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited