internal static LabelThemeCell FromJson(System.Json.JsonObject json) { if (json == null) return null; LabelThemeCell themeCell = new LabelThemeCell(); themeCell.ThemeLabel = ThemeLabel.FromJson(json); return themeCell; }
internal static string ToJson(LabelThemeCell themeCell) { string json = "{"; List<string> list = new List<string>(); if (themeCell.ThemeLabel != null) { list.Add(string.Format("\"themeLabel\":{0}", ThemeLabel.ToJson(themeCell.ThemeLabel))); } else { list.Add("\"themeLabel\":null"); } list.Add(string.Format("\"type\":\"{0}\"", themeCell.Type)); json += string.Join(",", list.ToArray()); json += "}"; return json; }