sadadPayResendOtp static method

Future<bool> sadadPayResendOtp({
  1. required String token,
})

Implementation

static Future<bool> sadadPayResendOtp({required String token}) async {
  final url = Uri.parse(
    ApiEndPoint.sadadPayResendOTP,
  );
  Map<String, String> header = {'Content-Type': 'application/json', "Authorization": token};

  var result = await http.get(url, headers: header);

  if (result.statusCode == 200) {
    var response = jsonDecode(result.body);
    return response['result'];
  }
  var response = jsonDecode(result.body);
  print(response);
  return false;
}