EncryptedReaderPayload constructor

EncryptedReaderPayload({
  1. required EncryptedPayloadFormat format,
  2. required String encryptedData,
  3. String? ksn,
  4. String? deviceSerial,
  5. EntryMode entryMode = EntryMode.unknown,
  6. CardSummary? cardSummary,
  7. DateTime? capturedAt,
})

Implementation

EncryptedReaderPayload({
  required this.format,
  required this.encryptedData,
  this.ksn,
  this.deviceSerial,
  this.entryMode = EntryMode.unknown,
  this.cardSummary,
  DateTime? capturedAt,
}) : capturedAt = capturedAt ?? DateTime.now().toUtc();