copyWith method

WorkflowExecutionResult copyWith({
  1. String? workflowId,
  2. String? executionId,
  3. WorkflowStatus? status,
  4. Map<String, dynamic>? result,
  5. String? error,
  6. DateTime? startedAt,
  7. DateTime? completedAt,
})

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,
  );
}