OutboxMutation constructor

OutboxMutation({
  1. String? id,
  2. required String tenantId,
  3. required String action,
  4. required Map<String, dynamic> payload,
  5. int maxRetries = 3,
  6. int retryCount = 0,
  7. Object? lastError,
  8. DateTime? lastAttemptedAt,
  9. DateTime? nextRetryAfter,
})

Creates an OutboxMutation.

Implementation

OutboxMutation({
  String? id,
  required this.tenantId,
  required this.action,
  required this.payload,
  this.maxRetries = 3,
  this.retryCount = 0,
  this.lastError,
  this.lastAttemptedAt,
  this.nextRetryAfter,
}) : id = id ?? _newId();