SecurityPolicyDdosProtectionConfig.fromJson constructor

SecurityPolicyDdosProtectionConfig.fromJson(
  1. Object? j
)

Implementation

factory SecurityPolicyDdosProtectionConfig.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return SecurityPolicyDdosProtectionConfig(
    ddosAdaptiveProtection: switch (json['ddosAdaptiveProtection']) {
      null => null,
      Object $1 => decodeString($1),
    },
    ddosImpactedBaselineThreshold:
        switch (json['ddosImpactedBaselineThreshold']) {
          null => null,
          Object $1 => decodeDouble($1),
        },
    ddosProtection: switch (json['ddosProtection']) {
      null => null,
      Object $1 => decodeString($1),
    },
  );
}