WebhookFilter.fromJson constructor

WebhookFilter.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory WebhookFilter.fromJson(Map<String, dynamic> json) {
  return WebhookFilter(
    pattern: json['pattern'] as String,
    type: (json['type'] as String).toWebhookFilterType(),
    excludeMatchedPattern: json['excludeMatchedPattern'] as bool?,
  );
}