SuperMap.Web.iServerJava6R.LabelThemeCell.ToJson C# (CSharp) Method

ToJson() static private method

static private ToJson ( LabelThemeCell themeCell ) : string
themeCell LabelThemeCell
return string
        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;
        }