Service as(String alias) { if (queryTree.n == null) { throw 'Specify service to apply alias to'; } queryTree.a = alias; return queryTree; }