API reference
Method DeserializeData
- Namespace
- DisCatSharp.Hosting.AspNetCore.Ingress.WebhookEvents
- Assembly
- DisCatSharp.Hosting.AspNetCore.dll
DeserializeData<T>()
Deserializes the nested event data into a typed model.
public T DeserializeData<T>() where T : ObservableApiObject
Returns
- T
The deserialized payload model.
Type Parameters
TThe payload model type.
Exceptions
- InvalidOperationException
Thrown when the envelope does not contain nested event data.