Skip to content

Commit

Permalink
fix(response): Fixed Json Deserialization error : 'Each parameter in …
Browse files Browse the repository at this point in the history
…the deserialization constructor on type x must bind to an object property or field on deserialization'
  • Loading branch information
Jamess-Lucass committed Jun 8, 2023
1 parent 465978c commit 6671467
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Responses/PagedResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ public PagedResponse(IEnumerable<T> data, int? count = null)
Count = count;
}

public PagedResponse()
{
Value = new List<T>();
}

[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public int? Count { get; set; }

Expand Down

0 comments on commit 6671467

Please sign in to comment.