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