getEncryptModel static method
Implementation
static Future<Map<String, dynamic>> getEncryptModel(
{required String encryptedKey, required String encryptedPayload}) async {
final String aesKey =
await M2PEncryptAndDecrypt.toDecryptRSA(encryptedText: encryptedKey);
final String aesDecryptedString = M2PEncryptAndDecrypt.toDecryptAES(
encryptedText: encryptedPayload, aesKey: aesKey);
return json.decode(aesDecryptedString) as Map<String, dynamic>;
}