dencryptData function

Future dencryptData(
  1. String value
)

Implementation

Future dencryptData(String value)async{
  const String api = "/dencrypt_data";
  var result;
  try {
    final response = await dio.post(api, data: {
      "record":value
    });
    if (response.statusCode == 200) {
      result = response.data;
      await showMsgSuccess("Mobile Money", "Decryption successfully done");
    }
  } catch (e) {
    print(e.toString());
    showMsgFailed("Mobile Money", "Failed to Decryption your data");
  }
  return result;
}