Parser getSingleChild(String name) { final result = getSingleChildOrNull(name); if (result == null) { throw ParsingException(name, null, 'Required child missing'); } return result; }