Register the resource with the Nitric server.
@override Future<void> register() async { var res = asRequest(); await _client.declare(res); _registrationCompletion.complete(res.id); }