MailboxItem constructor

MailboxItem({
  1. ProtectedMailboxStorageEntry? protectedMailboxStorageEntry,
  2. DecryptedMessageWithPubKey? decryptedMessageWithPubKey,
})

Implementation

factory MailboxItem({
  ProtectedMailboxStorageEntry? protectedMailboxStorageEntry,
  DecryptedMessageWithPubKey? decryptedMessageWithPubKey,
}) {
  final $result = create();
  if (protectedMailboxStorageEntry != null) {
    $result.protectedMailboxStorageEntry = protectedMailboxStorageEntry;
  }
  if (decryptedMessageWithPubKey != null) {
    $result.decryptedMessageWithPubKey = decryptedMessageWithPubKey;
  }
  return $result;
}