copyWith method
OutboundOperation
copyWith({
- String? id,
- OutboundOperationType? type,
- String? data,
- int? retryCount,
- OutboundOperationStatus? status,
- DateTime? createdAt,
- DateTime? processedAt,
- String? errorMessage,
Creates a copy with updated fields.
Implementation
OutboundOperation copyWith({
String? id,
OutboundOperationType? type,
String? data,
int? retryCount,
OutboundOperationStatus? status,
DateTime? createdAt,
DateTime? processedAt,
String? errorMessage,
}) {
return OutboundOperation(
id: id ?? this.id,
type: type ?? this.type,
data: data ?? this.data,
retryCount: retryCount ?? this.retryCount,
status: status ?? this.status,
createdAt: createdAt ?? this.createdAt,
processedAt: processedAt ?? this.processedAt,
errorMessage: errorMessage ?? this.errorMessage,
);
}