GoogleCloudContentwarehouseV1SearchDocumentsResponse.fromJson constructor

GoogleCloudContentwarehouseV1SearchDocumentsResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1SearchDocumentsResponse.fromJson(core.Map json_)
  : this(
      histogramQueryResults: (json_['histogramQueryResults'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudContentwarehouseV1HistogramQueryResult.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
      matchingDocuments: (json_['matchingDocuments'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudContentwarehouseV1SearchDocumentsResponseMatchingDocument.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
      metadata: json_.containsKey('metadata')
          ? GoogleCloudContentwarehouseV1ResponseMetadata.fromJson(
              json_['metadata'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      nextPageToken: json_['nextPageToken'] as core.String?,
      questionAnswer: json_['questionAnswer'] as core.String?,
      totalSize: json_['totalSize'] as core.int?,
    );