here "additionalInfo" field is "" blank basically its a array formate...but sometimes its coming "", how will handle this.
actual response formate is
"bill":{
"additionalInfo":[
{
"name": "Pena",
"value": "100.20"
}
],
"amount": "",
"billDate": "",
"billNumber": "",
"billPeriod": "",
"customerName": "Evelyn JADHV",
"dueDate": "2020-08-22"
},
but it comes like that from api
data": {
"bill": {
"additionalInfo": "",
"amount": "",
"billDate": "",
"billNumber": "",
"billPeriod": "",
"customerName": "",
"customerRefId": "01517476646",
"dueDate": ""
},
}
my classes
- public class GetBillFatchedBilldata
- {
- public bill bill { get; set; }
- }
- public class bill
- {
- public List<additional> additionalInfo { get; set; }
- public string amount { get; set; }
- public string billDate { get; set; }
- public string billNumber { get; set; }
- public string billPeriod { get; set; }
- public string customerName { get; set; }
- public string customerRefId { get; set; }
- public string dueDate { get; set; }
- }
- public class additional
- {
- public string name {get; set;}
- public string value {get; set;}
- }