confirmCurrentPhoneToChangeEmail method
Change email step three confirm current phone
Implementation
Future<ResponseModel> confirmCurrentPhoneToChangeEmail(
TokenOtpInput body) async {
try {
String url = '$baseUrl/change-email/confirm-current-phone';
Response? response = await postx(url, body: json.encode(body));
ResponseModel data = ResponseModel.fromJson(
json.decode(response.body) as Map<String, dynamic>);
return Future.value(data);
} catch (e) {
return Future.error(e);
}
}