ManagedRuleGroupStatement.fromJson constructor

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

Implementation

factory ManagedRuleGroupStatement.fromJson(Map<String, dynamic> json) {
  return ManagedRuleGroupStatement(
    name: json['Name'] as String,
    vendorName: json['VendorName'] as String,
    excludedRules: (json['ExcludedRules'] as List?)
        ?.whereNotNull()
        .map((e) => ExcludedRule.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}