getUserAccount method
Implementation
@override
Future<UserAccount> getUserAccount() async {
try {
return await dio.get(ApiEndpoints.USER, queryParameters: {
'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',
meta: {'method': 'getUserAccount'});
}
}