private void WriteAppearanceKeys(JsonWriter writer)
{
if (!String.IsNullOrEmpty(ForegroundColor))
{
writer.WritePropertyName("foregroundColor");
writer.WriteValue(ConvertColor(ForegroundColor));
}
if (!String.IsNullOrEmpty(BackgroundColor))
{
writer.WritePropertyName("backgroundColor");
writer.WriteValue(ConvertColor(BackgroundColor));
}
if (!String.IsNullOrEmpty(LabelColor))
{
writer.WritePropertyName("labelColor");
writer.WriteValue(ConvertColor(LabelColor));
}
if (SuppressStripShine.HasValue)
{
writer.WritePropertyName("suppressStripShine");
writer.WriteValue(SuppressStripShine.Value);
}
if (!String.IsNullOrEmpty(GroupingIdentifier))
{
writer.WritePropertyName("groupingIdentifier");
writer.WriteValue(GroupingIdentifier);
}
}