GoogleCloudContentwarehouseV1SearchDocumentsResponse.fromJson constructor

GoogleCloudContentwarehouseV1SearchDocumentsResponse.fromJson(
  1. Map json_
)

Implementation

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