copyWith method
Implementation
PendingEvent copyWith({
String? id,
PendingEventType? eventType,
Map<String, dynamic>? eventData,
String? integrationName,
int? attemptCount,
DateTime? lastAttempt,
int? retryIntervalSeconds,
DateTime? createdAt,
}) {
return PendingEvent(
id: id ?? this.id,
eventType: eventType ?? this.eventType,
eventData: eventData ?? this.eventData,
integrationName: integrationName ?? this.integrationName,
attemptCount: attemptCount ?? this.attemptCount,
lastAttempt: lastAttempt ?? this.lastAttempt,
retryIntervalSeconds: retryIntervalSeconds ?? this.retryIntervalSeconds,
createdAt: createdAt ?? this.createdAt,
);
}