GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromJson constructor

GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromJson(core.Map json_)
    : this(
        emailPasswordEnforcementState:
            json_.containsKey('emailPasswordEnforcementState')
                ? json_['emailPasswordEnforcementState'] as core.String
                : null,
        managedRules: json_.containsKey('managedRules')
            ? (json_['managedRules'] as core.List)
                .map((value) =>
                    GoogleCloudIdentitytoolkitAdminV2RecaptchaManagedRule
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        recaptchaKeys: json_.containsKey('recaptchaKeys')
            ? (json_['recaptchaKeys'] as core.List)
                .map((value) =>
                    GoogleCloudIdentitytoolkitAdminV2RecaptchaKey.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        useAccountDefender: json_.containsKey('useAccountDefender')
            ? json_['useAccountDefender'] as core.bool
            : null,
      );