예제 #1
0
 protected override void  Serialize(IDictionary <string, object> json)
 {
     if (Visible == false)
     {
         json["visible"] = Visible;
     }
     if (Margin.ShouldSerialize())
     {
         json["margin"] = Margin.CreateSerializer().Serialize();
     }
     if (this.Color.HasValue())
     {
         json["color"] = Color;
     }
     if (this.Font.HasValue())
     {
         json["font"] = Font;
     }
 }
예제 #2
0
 public bool ShouldSerialize()
 {
     return(Visible == false || Margin.ShouldSerialize() || Color.HasValue() || Font.HasValue());
 }