decryptPushNotificationSubject function

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

Decrypts the subject of a push notification

Implementation

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