getProfile method
Get your user profile information
It needs an authToken with an valid accessToken to succeed
Implementation
Future<Profile> getProfile({required AuthToken authToken}) async {
try {
final newProfileInterface = await _platform.getProfile(
reachFiveKey: ReachFiveKeyConverter.toInterface(reachFiveKey),
authToken: AuthTokenConverter.toInterface(authToken),
);
return ProfileConverter.fromInterface(newProfileInterface);
} catch (error, stackTrace) {
try {
_platform.parseError(error, stackTrace);
} catch (interfaceError, interfaceStackTrace) {
adaptErrors(error: interfaceError, stackTrace: interfaceStackTrace);
}
}
}