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
Change your package class and add JsonProperty decoration for each field you wish to map to a different json field.
public class Package
{
[JsonProperty(PropertyName = "carrier")]
public string Carrier { get; set; }
[JsonProperty(PropertyName = "trackingNumber")]
public string TrackingNumber { get; set; }
}