internal static string ToJson(ThemeGraphText graphText)
{
string json = "";
List<string> list = new List<string>();
list.Add(string.Format("\"graphTextDisplayed\":{0}", graphText.GraphTextDisplayed.ToString(System.Globalization.CultureInfo.InvariantCulture).ToLower()));
list.Add(string.Format("\"graphTextFormat\":\"{0}\"", graphText.GraphTextFormat));
if (graphText.GraphTextStyle != null)
{
list.Add(string.Format("\"graphTextStyle\":{0}", ServerTextStyle.ToJson(graphText.GraphTextStyle)));
}
else
{
list.Add(string.Format("\"graphTextStyle\":{0}", ServerTextStyle.ToJson(new ServerTextStyle())));
}
json = string.Join(",", list.ToArray());
return json;
}