I have a .Net Core Web API. It automatically maps models when the model properties match the request body. For example, if you have this class:
public clas
For DotnetCore3.1 We can use
public class Package { [JsonProperty("carrier")] public string Carrier { get; set; } [JsonProperty("trackingNumber")] public string TrackingNumber { get; set; } }