SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.fromJson constructor

SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.fromJson(
  1. Object? j
)

Implementation

factory SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig.fromJson(
  Object? j,
) {
  final json = j as Map<String, Object?>;
  return SecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfig(
    enforceOnKeyName: switch (json['enforceOnKeyName']) {
      null => null,
      Object $1 => decodeString($1),
    },
    enforceOnKeyType: switch (json['enforceOnKeyType']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}