/// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "name", n => { Name = n.GetStringValue(); } },
         { "worksheet", n => { Worksheet = n.GetObjectValue <WorkbookWorksheet>(WorkbookWorksheet.CreateFromDiscriminatorValue); } },
     });
 }
Exemple #2
0
 /// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "comment", n => { Comment = n.GetStringValue(); } },
         { "name", n => { Name = n.GetStringValue(); } },
         { "scope", n => { Scope = n.GetStringValue(); } },
         { "type", n => { Type = n.GetStringValue(); } },
         { "value", n => { Value = n.GetObjectValue <Json>(Json.CreateFromDiscriminatorValue); } },
         { "visible", n => { Visible = n.GetBoolValue(); } },
         { "worksheet", n => { Worksheet = n.GetObjectValue <WorkbookWorksheet>(WorkbookWorksheet.CreateFromDiscriminatorValue); } },
     });
 }
 /// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "axes", n => { Axes = n.GetObjectValue <WorkbookChartAxes>(WorkbookChartAxes.CreateFromDiscriminatorValue); } },
         { "dataLabels", n => { DataLabels = n.GetObjectValue <WorkbookChartDataLabels>(WorkbookChartDataLabels.CreateFromDiscriminatorValue); } },
         { "format", n => { Format = n.GetObjectValue <WorkbookChartAreaFormat>(WorkbookChartAreaFormat.CreateFromDiscriminatorValue); } },
         { "height", n => { Height = n.GetDoubleValue(); } },
         { "left", n => { Left = n.GetDoubleValue(); } },
         { "legend", n => { Legend = n.GetObjectValue <WorkbookChartLegend>(WorkbookChartLegend.CreateFromDiscriminatorValue); } },
         { "name", n => { Name = n.GetStringValue(); } },
         { "series", n => { Series = n.GetCollectionOfObjectValues <WorkbookChartSeries>(WorkbookChartSeries.CreateFromDiscriminatorValue).ToList(); } },
         { "title", n => { Title = n.GetObjectValue <WorkbookChartTitle>(WorkbookChartTitle.CreateFromDiscriminatorValue); } },
         { "top", n => { Top = n.GetDoubleValue(); } },
         { "width", n => { Width = n.GetDoubleValue(); } },
         { "worksheet", n => { Worksheet = n.GetObjectValue <WorkbookWorksheet>(WorkbookWorksheet.CreateFromDiscriminatorValue); } },
     });
 }
 /// <summary>
 /// The deserialization information for the current model
 /// </summary>
 public new IDictionary <string, Action <IParseNode> > GetFieldDeserializers()
 {
     return(new Dictionary <string, Action <IParseNode> >(base.GetFieldDeserializers())
     {
         { "columns", n => { Columns = n.GetCollectionOfObjectValues <WorkbookTableColumn>(WorkbookTableColumn.CreateFromDiscriminatorValue).ToList(); } },
         { "highlightFirstColumn", n => { HighlightFirstColumn = n.GetBoolValue(); } },
         { "highlightLastColumn", n => { HighlightLastColumn = n.GetBoolValue(); } },
         { "legacyId", n => { LegacyId = n.GetStringValue(); } },
         { "name", n => { Name = n.GetStringValue(); } },
         { "rows", n => { Rows = n.GetCollectionOfObjectValues <WorkbookTableRow>(WorkbookTableRow.CreateFromDiscriminatorValue).ToList(); } },
         { "showBandedColumns", n => { ShowBandedColumns = n.GetBoolValue(); } },
         { "showBandedRows", n => { ShowBandedRows = n.GetBoolValue(); } },
         { "showFilterButton", n => { ShowFilterButton = n.GetBoolValue(); } },
         { "showHeaders", n => { ShowHeaders = n.GetBoolValue(); } },
         { "showTotals", n => { ShowTotals = n.GetBoolValue(); } },
         { "sort", n => { Sort = n.GetObjectValue <WorkbookTableSort>(WorkbookTableSort.CreateFromDiscriminatorValue); } },
         { "style", n => { Style = n.GetStringValue(); } },
         { "worksheet", n => { Worksheet = n.GetObjectValue <WorkbookWorksheet>(WorkbookWorksheet.CreateFromDiscriminatorValue); } },
     });
 }