forgotPassword static method
Implementation
static Future<Response<dynamic>> forgotPassword({
String email = "",
String mobileno = "",
}) async {
String url = "${AppUrls.baseUrlVSMS}/subscriberv2/v1/forgotpassword";
var body = {
email.isNotEmpty ? "email" : "mobileno":
email.isNotEmpty ? email : mobileno
};
if (email.isNotEmpty) {
body['email'] = email;
}
if (mobileno.isNotEmpty) {
body['mobileno'] = mobileno;
}
final response = await _dio!.post(url, data: body);
return response;
}