WebhookRuleConfig.fromJson constructor

WebhookRuleConfig.fromJson(
  1. Object? json
)

Implementation

factory WebhookRuleConfig.fromJson(Object? json) {
  final map = asJsonMap(json, 'webhook');
  return WebhookRuleConfig(
    url: map['url'] as String,
    deduplication: map['deduplication'] as int?,
    headers: (map['headers'] as Map?)?.cast<String, String>(),
  );
}