resendEmailOrPhoneVerification static method

dynamic resendEmailOrPhoneVerification({
  1. required String email,
  2. required String phone,
})

Implementation

static resendEmailOrPhoneVerification(
    {required String email, required String phone}) async {
  String url = "${AppUrls.baseUrlVSMS}/subscriberv2/v1/resend";
  var body = {
    "email": email.isEmpty ? null : email,
    "mobileno": phone.isEmpty ? null : phone
  };
  final response = await _dio!.post(url, data: body);
  return response.data;
}