GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.fromJson constructor

GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest.fromJson(
  1. Map json_
)

Implementation

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