PreconfiguredWafSet.fromJson constructor
PreconfiguredWafSet.fromJson(
- Object? j
Implementation
factory PreconfiguredWafSet.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return PreconfiguredWafSet(
expressionSets: switch (json['expressionSets']) {
null => [],
List<Object?> $1 => [for (final i in $1) WafExpressionSet.fromJson(i)],
_ => throw const FormatException('"expressionSets" is not a list'),
},
);
}