getUserAccountByEmail method
Implementation
@override
Future<UserAccount> getUserAccountByEmail(String email) async {
try {
return await dio.get(ApiEndpoints.USER, queryParameters: {
'user_email': email,
'profile': 2
}).then((value) => UserAccount.fromJson(value.data['body']));
} on Exception catch (e) {
throw HttpHelper.decodeErrorResponse(e,
tag: TAG,
logger: logger,
defaultErrorMessage: 'Failed to get user account by email',
meta: {'email': email});
}
}