コード例 #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;
     }
 }