GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment.fromJson constructor

GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessment.fromJson(
  core.Map json_,
) : this(
      behavioralTrustVerdict: json_.containsKey('behavioralTrustVerdict')
          ? GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentBehavioralTrustVerdict.fromJson(
              json_['behavioralTrustVerdict']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      cardTestingVerdict: json_.containsKey('cardTestingVerdict')
          ? GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentCardTestingVerdict.fromJson(
              json_['cardTestingVerdict']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      riskReasons: (json_['riskReasons'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentRiskReason.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
      stolenInstrumentVerdict: json_.containsKey('stolenInstrumentVerdict')
          ? GoogleCloudRecaptchaenterpriseV1FraudPreventionAssessmentStolenInstrumentVerdict.fromJson(
              json_['stolenInstrumentVerdict']
                  as core.Map<core.String, core.dynamic>,
            )
          : null,
      transactionRisk: (json_['transactionRisk'] as core.num?)?.toDouble(),
    );