getUser method

Future<User> getUser(
  1. String sdkId,
  2. String userId
)

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);
}