File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed
Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ using System . Text . Json . Serialization ;
2+
3+ namespace TS . NET . Sequencer ;
4+
5+ [ JsonSourceGenerationOptions ( PropertyNamingPolicy = JsonKnownNamingPolicy . CamelCase , UseStringEnumConverter = true ) ]
6+ [ JsonSerializable ( typeof ( ResultMetadataXYChart ) ) ]
7+ internal partial class DefaultCaseContext : JsonSerializerContext { }
Original file line number Diff line number Diff line change 1- namespace TS . NET . Sequencer
1+ using System . Text . Json ;
2+
3+ namespace TS . NET . Sequencer
24{
35 public class ResultMetadataXYChart : ResultMetadata
46 {
@@ -10,11 +12,7 @@ public class ResultMetadataXYChart : ResultMetadata
1012 public string ToJson ( )
1113 {
1214 SetSeriesColours ( ) ;
13- return System . Text . Json . JsonSerializer . Serialize ( this , new System . Text . Json . JsonSerializerOptions
14- {
15- PropertyNamingPolicy = System . Text . Json . JsonNamingPolicy . CamelCase ,
16- Converters = { new System . Text . Json . Serialization . JsonStringEnumConverter ( System . Text . Json . JsonNamingPolicy . CamelCase ) }
17- } ) ;
15+ return JsonSerializer . Serialize ( this , DefaultCaseContext . Default . ResultMetadataXYChart ) ;
1816 }
1917
2018 public void SetSeriesColours ( )
You can’t perform that action at this time.
0 commit comments