File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/KristofferStrube.Blazor.WebAudio/Options Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ public class PeriodicWaveOptions : PeriodicWaveConstraints
2020 /// The third represents the first overtone and so on.
2121 /// </summary>
2222 [ JsonPropertyName ( "imag" ) ]
23- public required float [ ] Imag { get ; set ; }
23+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
24+ public float [ ] ? Imag { get ; set ; }
2425
2526 /// <summary>
2627 /// The real parameter represents an array of cosine terms.
@@ -29,5 +30,6 @@ public class PeriodicWaveOptions : PeriodicWaveConstraints
2930 /// The third represents the first overtone and so on.
3031 /// </summary>
3132 [ JsonPropertyName ( "real" ) ]
32- public required float [ ] Real { get ; set ; }
33+ [ JsonIgnore ( Condition = JsonIgnoreCondition . WhenWritingNull ) ]
34+ public float [ ] ? Real { get ; set ; }
3335}
You can’t perform that action at this time.
0 commit comments