WebhookDefinition.fromJson constructor 
    
      
      WebhookDefinition.fromJson(
 - Map<String, dynamic> json
) 
    
    
  Implementation
  factory WebhookDefinition.fromJson(Map<String, dynamic> json) {
  return WebhookDefinition(
    authentication:
        (json['authentication'] as String).toWebhookAuthenticationType(),
    authenticationConfiguration: WebhookAuthConfiguration.fromJson(
        json['authenticationConfiguration'] as Map<String, dynamic>),
    filters: (json['filters'] as List)
        .whereNotNull()
        .map((e) => WebhookFilterRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    name: json['name'] as String,
    targetAction: json['targetAction'] as String,
    targetPipeline: json['targetPipeline'] as String,
  );
}