${REST_LabelThemeCell_Title}
${REST_LabelThemeCell_Description}
internal static LabelThemeCell FromJson(JsonObject json) { if (json == null) return null; LabelThemeCell themeCell = new LabelThemeCell(); themeCell.ThemeLabel = ThemeLabel.FromJson(json); if (json.ContainsKey("type") && json["type"] != null) { themeCell.Type = (LabelMatrixCellType)Enum.Parse(typeof(LabelMatrixCellType), json["type"].GetStringEx(), true); } 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; }