getCurrentUser method
Implementation
Future<User> getCurrentUser(String sdkId) async {
final res = await _methodChannel.invokeMethod<String>(
'UserApi.getCurrentUser',
{
"sdkId": sdkId,
}
);
if (res == null) throw AssertionError("received null result from platform method getCurrentUser");
final parsedResJson = jsonDecode(res);
return User.fromJSON(parsedResJson);
}