WorkflowStepEntry class
Persisted step checkpoint metadata for a workflow run.
Constructors
- WorkflowStepEntry({required String name, required Object? value, required int position, DateTime? completedAt})
-
Creates a workflow step entry snapshot.
const
-
WorkflowStepEntry.fromJson(Map<
String, Object?> json) -
Rehydrates a step entry from serialized JSON.
factory
Properties
- baseName → String
-
Base step name without any auto-version suffix.
no setter
- completedAt → DateTime?
-
Optional timestamp when the checkpoint was recorded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iteration → int?
-
Parsed iteration suffix for auto-versioned checkpoints, if present.
no setter
- name → String
-
Step identifier as registered in the workflow definition.
final
- position → int
-
Zero-based ordinal for rendering in execution order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → Object?
-
Serialized checkpoint value captured after the step succeeded.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> - Converts this entry to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
-
valueAs<
TValue> ({required PayloadCodec< TValue> codec}) → TValue? -
Decodes the persisted checkpoint value with
codec, when present. -
valueJson<
TValue> ({required TValue decode(Map< String, dynamic> payload), String? typeName}) → TValue? - Decodes the persisted checkpoint value with a JSON decoder, when present.
-
valueVersionedJson<
TValue> ({required int version, required TValue decode(Map< String, dynamic> payload, int version), int? defaultDecodeVersion, String? typeName}) → TValue? - Decodes the persisted checkpoint value with a version-aware JSON decoder, when present.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited