fromJson

Parse a NetworkSpec from a JSON string produced by toJson.