AwsWafWebAclDetails.fromJson constructor

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

Implementation

factory AwsWafWebAclDetails.fromJson(Map<String, dynamic> json) {
  return AwsWafWebAclDetails(
    defaultAction: json['DefaultAction'] as String?,
    name: json['Name'] as String?,
    rules: (json['Rules'] as List?)
        ?.whereNotNull()
        .map((e) => AwsWafWebAclRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    webAclId: json['WebAclId'] as String?,
  );
}