fromData

Builds a network from a specification, validating it exactly as the builder does, so a specification that round-trips through JSON fails in the same place and with the same message it would have if it had been typed.