getProfile method
Implementation
Future<ProfileData?> getProfile(String accessToken) async {
try {
final result = await UaePassPlatform.instance.getProfile(accessToken);
return ProfileData.fromJson(json.decode(result));
} on PlatformException catch (e) {
throw (e.message ?? "Unknown error");
} catch (e) {
throw (e.toString());
}
}