I am having Asp.Net Core 3.1 Application, And After changing DataMember to JsonPropertyName Getting error as below
<div>Error CA2227 Change 'FilterStatus' to be read-only by removing the property setter.</div>[JsonPropertyName("filterFlags")] public List<FilterType> FilterStatus { get; set; }