GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromMap constructor

GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromMap(Map<String, dynamic> map) {
  return GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig(
    emailPasswordEnforcementState: (() { final guardedValue = map['emailPasswordEnforcementState']; if (guardedValue == null) return null; return pulumi.Input.fromValue(GoogleCloudIdentitytoolkitAdminV2RecaptchaConfigEmailPasswordEnforcementState.fromValue(guardedValue as String)); })(),
    managedRules: (() { final guardedValue = map['managedRules']; if (guardedValue == null) return null; return pulumi.Input.fromValue(pulumi.Input.decodeList<GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule>(guardedValue, (value) => GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule.fromMap((value as Map).cast<String, dynamic>()))); })(),
    useAccountDefender: (() { final guardedValue = map['useAccountDefender']; if (guardedValue == null) return null; return pulumi.Input.fromValue(guardedValue as bool); })(),
  );
}