DecryptedSubject.fromEncrypted constructor
DecryptedSubject.fromEncrypted(
- RSAPrivateKey privateKey,
- 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>,
);