public override string Serialize() { var sb = new StringBuilder(base.Serialize()); sb.AppendLine(); sb.AppendLine("====== SWITCHES ======"); sb.AppendLine($"Group ID: {GroupId.ToHex()}"); foreach (var s in SwitchOrStates) { sb.AppendLine("Switch " + s.Id.ToHex() + " => " + String.Join(", ", s.AssignedChildIds)); } sb.AppendLine("======================"); return(sb.ToString()); }