I have a NPL protocol called PurchaseOrder with a function total() returns Number -> quantity * unitPrice. When I GET the protocol instance, total isn’t in the response, only constructor params and var declarations.
Currently I’m creating @api permission getTotal() for each computed value, then calling them separately. Is there a better pattern? Feels like a lot of boilerplate for derived fields.