getDecryptDataResponse function

dynamic getDecryptDataResponse(
  1. String response, {
  2. bool isJsonDecode = false,
})

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 "";
}