StageResult class

Stage execution result.

Constructors

StageResult({required String stageId, required StageStatus status, dynamic output, String? error, required DateTime startedAt, DateTime? completedAt})
const
StageResult.completed(String stageId, dynamic output, [Duration? duration])
Create a completed result.
factory
StageResult.failed(String stageId, String error)
Create a failed result.
factory
StageResult.fromJson(Map<String, dynamic> json)
Deserialize from JSON.
factory
StageResult.pending(String stageId, String message)
Create a pending result.
factory
StageResult.skipped(String stageId, String reason)
Create a skipped result.
factory

Properties

completedAt → DateTime?
When execution completed.
final
duration → Duration?
Execution duration.
no setter
error → String?
Error message if failed.
final
hashCode → int
The hash code for this object.
no setterinherited
output → dynamic
Output data.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stageId → String
Stage identifier.
final
startedAt → DateTime
When execution started.
final
status → StageStatus
Execution status.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serialize to JSON.
toString() → String
A string representation of this object.
inherited

Operators

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