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