public string Serialize(ConnectionTreeModel connectionTreeModel) { connectionTreeModel.ThrowIfNull(nameof(connectionTreeModel)); var rootNode = connectionTreeModel.RootNodes.First(node => node is RootNodeInfo); return(Serialize(rootNode)); }