SecurityPolicyRulePreconfiguredWafConfigExclusion.fromJson constructor

SecurityPolicyRulePreconfiguredWafConfigExclusion.fromJson(
  1. Map json_
)

Implementation

SecurityPolicyRulePreconfiguredWafConfigExclusion.fromJson(core.Map json_)
    : this(
        requestCookiesToExclude: json_.containsKey('requestCookiesToExclude')
            ? (json_['requestCookiesToExclude'] as core.List)
                .map((value) =>
                    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requestHeadersToExclude: json_.containsKey('requestHeadersToExclude')
            ? (json_['requestHeadersToExclude'] as core.List)
                .map((value) =>
                    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requestQueryParamsToExclude: json_
                .containsKey('requestQueryParamsToExclude')
            ? (json_['requestQueryParamsToExclude'] as core.List)
                .map((value) =>
                    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        requestUrisToExclude: json_.containsKey('requestUrisToExclude')
            ? (json_['requestUrisToExclude'] as core.List)
                .map((value) =>
                    SecurityPolicyRulePreconfiguredWafConfigExclusionFieldParams
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        targetRuleIds: json_.containsKey('targetRuleIds')
            ? (json_['targetRuleIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        targetRuleSet: json_.containsKey('targetRuleSet')
            ? json_['targetRuleSet'] as core.String
            : null,
      );