GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.fromJson constructor

GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.fromJson(
  core.Map json_,
) : this(
      accountId: json_['accountId'] as core.String?,
      annotation: json_['annotation'] as core.String?,
      hashedAccountId: json_['hashedAccountId'] as core.String?,
      phoneAuthenticationEvent:
          json_.containsKey('phoneAuthenticationEvent')
              ? GoogleCloudRecaptchaenterpriseV1PhoneAuthenticationEvent.fromJson(
                json_['phoneAuthenticationEvent']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      reasons:
          (json_['reasons'] as core.List?)
              ?.map((value) => value as core.String)
              .toList(),
      transactionEvent:
          json_.containsKey('transactionEvent')
              ? GoogleCloudRecaptchaenterpriseV1TransactionEvent.fromJson(
                json_['transactionEvent']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
    );