private function convertResource(ResourceInfo $resource) : array { return $resource->getAttributes() ->toArray(); }