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