v1CreateWebhookEndpointIntent.fromJson constructor
v1CreateWebhookEndpointIntent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory v1CreateWebhookEndpointIntent.fromJson(Map<String, dynamic> json) {
final _url = json['url'] as String;
final _name = json['name'] as String;
final _subscriptions = (json['subscriptions'] as List?)
?.map((e) =>
v1WebhookSubscriptionParams.fromJson(e as Map<String, dynamic>))
.toList();
return v1CreateWebhookEndpointIntent(
url: _url,
name: _name,
subscriptions: _subscriptions,
);
}