SecurityPolicyAdaptiveProtectionConfig.fromJson constructor

SecurityPolicyAdaptiveProtectionConfig.fromJson(
  1. Object? j
)

Implementation

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