copyWith method

PendingEvent copyWith({
  1. String? id,
  2. PendingEventType? eventType,
  3. Map<String, dynamic>? eventData,
  4. String? integrationName,
  5. int? attemptCount,
  6. DateTime? lastAttempt,
  7. int? retryIntervalSeconds,
  8. DateTime? createdAt,
})

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