copyWith method
Implementation
WorkflowExecutionResult copyWith({
String? workflowId,
String? executionId,
WorkflowStatus? status,
Map<String, dynamic>? result,
String? error,
DateTime? startedAt,
DateTime? completedAt,
}) {
return WorkflowExecutionResult(
workflowId: workflowId ?? this.workflowId,
executionId: executionId ?? this.executionId,
status: status ?? this.status,
result: result ?? this.result,
error: error ?? this.error,
startedAt: startedAt ?? this.startedAt,
completedAt: completedAt ?? this.completedAt,
);
}