WebACL.fromJson constructor

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

Implementation

factory WebACL.fromJson(Map<String, dynamic> json) {
  return WebACL(
    defaultAction:
        WafAction.fromJson(json['DefaultAction'] as Map<String, dynamic>),
    rules: (json['Rules'] as List)
        .whereNotNull()
        .map((e) => ActivatedRule.fromJson(e as Map<String, dynamic>))
        .toList(),
    webACLId: json['WebACLId'] as String,
    metricName: json['MetricName'] as String?,
    name: json['Name'] as String?,
    webACLArn: json['WebACLArn'] as String?,
  );
}