Ramco Ramco

Ramco Ramco

  • 439
  • 3.4k
  • 544.3k

root.shipment data not showing

Jan 11 2023 4:22 AM

Hi

  I have created below classes for APi response data. But when i try to root.shipmentdata it is not showing

RootShipment root = JsonConvert.DeserializeObject<RootShipment>(response.Content);
                    root.data.

************************
public class RootShipment
{
    public bool status { get; set; }
    public Data data { get; set; }

}
public class DataShipment
{
    public int order_id { get; set; }
    public int shipment_id { get; set; }
    public string awb_number { get; set; }
    public string courier_id { get; set; }
    public string courier_name { get; set; }
    public string status { get; set; }
    public string additional_info { get; set; }
    public string payment_type { get; set; }
    public string label { get; set; }
}

Thanks


Answers (3)