internal static string ToJson(ThemeUniqueItem themeUniqueItem)
{
if (themeUniqueItem == null)
{
return null;
}
string json = "{";
List<string> list = new List<string>();
if (themeUniqueItem.Caption != null)
{
list.Add(string.Format("\"caption\":\"{0}\"", themeUniqueItem.Caption));
}
if (ServerStyle.ToJson(themeUniqueItem.Style) != null)
{
list.Add(string.Format("\"style\":{0}", ServerStyle.ToJson(themeUniqueItem.Style)));
}
else
{
list.Add(string.Format("\"style\":null"));
}
if (themeUniqueItem.Unique != null)
{
list.Add(string.Format("\"unique\":\"{0}\"", themeUniqueItem.Unique));
}
list.Add(string.Format("\"visible\":{0}", themeUniqueItem.Visible));
json += string.Join(",", list.ToArray());
json += "}";
return json;
}