File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,5 +16,46 @@ namespace Simli.Realtime
1616 } ) ]
1717 public sealed partial class RealtimeSourceGenerationContext : global ::System . Text . Json . Serialization . JsonSerializerContext
1818 {
19+ private static readonly global ::System . Text . Json . JsonSerializerOptions DefaultOptions = CreateDefaultOptions ( ) ;
20+
21+ /// <summary>
22+ ///
23+ /// </summary>
24+ public static RealtimeSourceGenerationContext Default { get ; } = new ( DefaultOptions ) ;
25+
26+ /// <summary>
27+ ///
28+ /// </summary>
29+ public RealtimeSourceGenerationContext ( )
30+ : this ( DefaultOptions )
31+ {
32+ }
33+
34+ /// <summary>
35+ ///
36+ /// </summary>
37+ public RealtimeSourceGenerationContext ( global ::System . Text . Json . JsonSerializerOptions ? options )
38+ : base ( options )
39+ {
40+ }
41+
42+ /// <inheritdoc />
43+ protected override global ::System . Text . Json . JsonSerializerOptions ? GeneratedSerializerOptions => DefaultOptions ;
44+
45+ /// <inheritdoc />
46+ public override global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo ? GetTypeInfo ( global ::System . Type type )
47+ {
48+ return null ;
49+ }
50+
51+ private static global ::System . Text . Json . JsonSerializerOptions CreateDefaultOptions ( )
52+ {
53+ var options = new global ::System . Text . Json . JsonSerializerOptions
54+ {
55+ DefaultIgnoreCondition = global ::System . Text . Json . Serialization . JsonIgnoreCondition . WhenWritingNull ,
56+ } ;
57+
58+ return options ;
59+ }
1960 }
2061}
You can’t perform that action at this time.
0 commit comments