I have below JSON which is to be sent as a request body to one of post API
In this JSON One collection is with name object
Now when I am creating the same class structure to accept its value as an input parameter to API, it won't allow me to create a class with name object as it is a keyword in c#
I have also tried with creating a class as Object (With capital letter O) but then it's not get mapping with Json collection field
below is JSON
{
"id": "evt_1H6sEEKsjmsHEhuX87Sktxk2",
"object": "event",
"api_version": "2020-03-02",
"created": 1595225517,
"data": {
"object": {
"id": "ch_1H6sEDKsjmsHEhuXn9w61svA",
"object": "charge",
"amount": 5997,
"amount_refunded": 0,
"application": "ca_3uEnjuTM2a0FYxKuLJJsbe7wql7nfwhU",
"application_fee": null,
"application_fee_amount": null,
"balance_transaction": "txn_1H6sEDKsjmsHEhuXbsjV1sN0",
"source_transfer": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "succeeded",
"transfer_data": null,
"transfer_group": null
}
}
}