SecurityPolicyRuleRateLimitOptions.fromJson constructor
SecurityPolicyRuleRateLimitOptions.fromJson(
- Map json_
Implementation
SecurityPolicyRuleRateLimitOptions.fromJson(core.Map json_)
: this(
banDurationSec: json_.containsKey('banDurationSec')
? json_['banDurationSec'] as core.int
: null,
banThreshold: json_.containsKey('banThreshold')
? SecurityPolicyRuleRateLimitOptionsThreshold.fromJson(
json_['banThreshold'] as core.Map<core.String, core.dynamic>)
: null,
conformAction: json_.containsKey('conformAction')
? json_['conformAction'] as core.String
: null,
enforceOnKey: json_.containsKey('enforceOnKey')
? json_['enforceOnKey'] as core.String
: null,
enforceOnKeyConfigs: json_.containsKey('enforceOnKeyConfigs')
? (json_['enforceOnKeyConfigs'] as core.List)
.map((value) =>
SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
enforceOnKeyName: json_.containsKey('enforceOnKeyName')
? json_['enforceOnKeyName'] as core.String
: null,
exceedAction: json_.containsKey('exceedAction')
? json_['exceedAction'] as core.String
: null,
exceedRedirectOptions: json_.containsKey('exceedRedirectOptions')
? SecurityPolicyRuleRedirectOptions.fromJson(
json_['exceedRedirectOptions']
as core.Map<core.String, core.dynamic>)
: null,
rateLimitThreshold: json_.containsKey('rateLimitThreshold')
? SecurityPolicyRuleRateLimitOptionsThreshold.fromJson(
json_['rateLimitThreshold']
as core.Map<core.String, core.dynamic>)
: null,
);