asRequest method

  1. @override
ResourceDeclareRequest asRequest()
override

Implementation

@override
ResourceDeclareRequest asRequest() {
  var resource = $p.ResourceIdentifier(
    name: name,
    type: $p.ResourceType.Topic,
  );

  return $p.ResourceDeclareRequest(id: resource, topic: $p.TopicResource());
}