I have a pretty simple dto class.
public class GridDto<T> : List<T>
{
public int TotalItems { get; set; }
public GridDto(IEnumerable<T> items, int totalItems = 0)
{
AddRange(items);
TotalItems = totalItems;
}
}
When I call ReadFromJsonAsync
I get an NotSupportedException
. Is there a fix?
ReadFromJsonAsync
.