toDomain method

Log toDomain(
  1. EncryptionService? encryptionService
)

Implementation

Log toDomain(EncryptionService? encryptionService) {
  final decrypted = encryptionService?.decrypt(encryptedMessage) ?? encryptedMessage;
  return Log(message: decrypted, timestamp: timestamp);
}