GoogleCloudIdentitytoolkitAdminV2Tenant.fromJson constructor

GoogleCloudIdentitytoolkitAdminV2Tenant.fromJson(
  1. Map json_
)

Implementation

GoogleCloudIdentitytoolkitAdminV2Tenant.fromJson(core.Map json_)
    : this(
        allowPasswordSignup: json_.containsKey('allowPasswordSignup')
            ? json_['allowPasswordSignup'] as core.bool
            : null,
        autodeleteAnonymousUsers:
            json_.containsKey('autodeleteAnonymousUsers')
                ? json_['autodeleteAnonymousUsers'] as core.bool
                : null,
        client: json_.containsKey('client')
            ? GoogleCloudIdentitytoolkitAdminV2ClientPermissionConfig
                .fromJson(
                    json_['client'] as core.Map<core.String, core.dynamic>)
            : null,
        disableAuth: json_.containsKey('disableAuth')
            ? json_['disableAuth'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        emailPrivacyConfig: json_.containsKey('emailPrivacyConfig')
            ? GoogleCloudIdentitytoolkitAdminV2EmailPrivacyConfig.fromJson(
                json_['emailPrivacyConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        enableAnonymousUser: json_.containsKey('enableAnonymousUser')
            ? json_['enableAnonymousUser'] as core.bool
            : null,
        enableEmailLinkSignin: json_.containsKey('enableEmailLinkSignin')
            ? json_['enableEmailLinkSignin'] as core.bool
            : null,
        hashConfig: json_.containsKey('hashConfig')
            ? GoogleCloudIdentitytoolkitAdminV2HashConfig.fromJson(
                json_['hashConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        inheritance: json_.containsKey('inheritance')
            ? GoogleCloudIdentitytoolkitAdminV2Inheritance.fromJson(
                json_['inheritance'] as core.Map<core.String, core.dynamic>)
            : null,
        mfaConfig: json_.containsKey('mfaConfig')
            ? GoogleCloudIdentitytoolkitAdminV2MultiFactorAuthConfig.fromJson(
                json_['mfaConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        monitoring: json_.containsKey('monitoring')
            ? GoogleCloudIdentitytoolkitAdminV2MonitoringConfig.fromJson(
                json_['monitoring'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        passwordPolicyConfig: json_.containsKey('passwordPolicyConfig')
            ? GoogleCloudIdentitytoolkitAdminV2PasswordPolicyConfig.fromJson(
                json_['passwordPolicyConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        recaptchaConfig: json_.containsKey('recaptchaConfig')
            ? GoogleCloudIdentitytoolkitAdminV2RecaptchaConfig.fromJson(
                json_['recaptchaConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        smsRegionConfig: json_.containsKey('smsRegionConfig')
            ? GoogleCloudIdentitytoolkitAdminV2SmsRegionConfig.fromJson(
                json_['smsRegionConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        testPhoneNumbers: json_.containsKey('testPhoneNumbers')
            ? (json_['testPhoneNumbers']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );