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