getDecryptDataResponse function
Implementation
getDecryptDataResponse(String response, {bool isJsonDecode = false}) {
try {
String realResponse = Encryption.instance.decryptData(response);
// printLogs("realResponse $realResponse");
if (isJsonDecode) {
return jsonDecode(realResponse);
}
return realResponse;
} catch (e) {
printLogs("Error from decryptData $e");
}
return "";
}