WebAclDataProtectionConfigDataProtection.fromMap constructor

WebAclDataProtectionConfigDataProtection.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory WebAclDataProtectionConfigDataProtection.fromMap(Map<String, dynamic> map) {
  return WebAclDataProtectionConfigDataProtection(
    action: pulumi.Input.fromValue(map['action'] as String),
    excludeRateBasedDetails: (() { final guardedValue = map['excludeRateBasedDetails']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    excludeRuleMatchDetails: (() { final guardedValue = map['excludeRuleMatchDetails']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
    field: pulumi.Input.fromValue(WebAclDataProtectionConfigDataProtectionField.fromMap((map['field']! as Map).cast<String, dynamic>())),
  );
}