DecryptedSubject.fromEncrypted constructor

DecryptedSubject.fromEncrypted(
  1. RSAPrivateKey privateKey,
  2. String subject
)

Decrypts the subject of a push notification.

Implementation

factory DecryptedSubject.fromEncrypted(RSAPrivateKey privateKey, String subject) => DecryptedSubject.fromJson(
      json.decode(privateKey.decrypt(subject)) as Map<String, dynamic>,
    );