forgotPassword method
Implementation
@override
Future<ForgotPassword> forgotPassword({required String email}) async {
final response = await dio.post(
'/microsite/passwords',
data: {
"api_key": Environment.apiKey,
"campaign": Environment.campaign,
"participation": {"email": email},
"notification_channel": "email",
},
);
final Map<String, dynamic> responseData = jsonDecode(response.data);
return _jsonToResetPassword(responseData);
}