pub fn domains_from_model(model: &Model) -> BTreeMap<Name, DomainPtr>
Collect find/given domains from a model for JSON parsing guidance.