I am working with Stripe/Stripe.net Webhooks in my ASP.Net Core app. I am trying to map an object where I can use the properties returned from the Webhook JSON response and save various properties into my database. Using Postman, I am able to receive the sample JSON that I got from Stripe test webhooks in my Controller method and parse the JSON using
var json = await new StreamReader(HttpContext.Request.Body).ReadToEndAsync();
Event stripeEvent = EventUtility.ParseEvent(json);
which returns:
stripeEvent = {<Stripe.Event@2269235 id=evt_00000000000000> JSON: {"id": "evt_00000000000000", "object": "event", "account": null, "api_version": "2020-03-02", "created": 1326853478, "data": { "object": { "id": "ch_00000000000000", "...
I am needing to map the JSON from the RawObject ChildrenTokens into a model but I'm not able to access the ChildrenTokens through C#. Is there any way to be able to map these properties?