I'm trying to save the CompositeFilterDescriptor.
If I do the following:
var serializedFilter = JsonSerializer.Serialize(FilterValue);
var deserializedFilter = JsonSerializer.Deserialize<CompositeFilterDescriptor>(serializedFilter);
The deserializedFilter FilterDescriptor.MemberType is null and if used causes the the display of the filters to throw an exception.
Note that the filters are part of a user preferences class that is serialized as a whole. So is there a proper way to serialize/deserialize?