AwsWafWebAclRule.fromJson constructor

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

Implementation

factory AwsWafWebAclRule.fromJson(Map<String, dynamic> json) {
  return AwsWafWebAclRule(
    action: json['Action'] != null
        ? WafAction.fromJson(json['Action'] as Map<String, dynamic>)
        : null,
    excludedRules: (json['ExcludedRules'] as List?)
        ?.whereNotNull()
        .map((e) => WafExcludedRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    overrideAction: json['OverrideAction'] != null
        ? WafOverrideAction.fromJson(
            json['OverrideAction'] as Map<String, dynamic>)
        : null,
    priority: json['Priority'] as int?,
    ruleId: json['RuleId'] as String?,
    type: json['Type'] as String?,
  );
}