getUserByEmail method

Future<User> getUserByEmail(
  1. String sdkId,
  2. String email
)

Implementation

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