GoogleCloudContentwarehouseV1DocumentQuery.fromJson constructor

GoogleCloudContentwarehouseV1DocumentQuery.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContentwarehouseV1DocumentQuery.fromJson(core.Map json_)
    : this(
        customPropertyFilter: json_.containsKey('customPropertyFilter')
            ? json_['customPropertyFilter'] as core.String
            : null,
        customWeightsMetadata: json_.containsKey('customWeightsMetadata')
            ? GoogleCloudContentwarehouseV1CustomWeightsMetadata.fromJson(
                json_['customWeightsMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        documentCreatorFilter: json_.containsKey('documentCreatorFilter')
            ? (json_['documentCreatorFilter'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        documentNameFilter: json_.containsKey('documentNameFilter')
            ? (json_['documentNameFilter'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        documentSchemaNames: json_.containsKey('documentSchemaNames')
            ? (json_['documentSchemaNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        fileTypeFilter: json_.containsKey('fileTypeFilter')
            ? GoogleCloudContentwarehouseV1FileTypeFilter.fromJson(
                json_['fileTypeFilter']
                    as core.Map<core.String, core.dynamic>)
            : null,
        folderNameFilter: json_.containsKey('folderNameFilter')
            ? json_['folderNameFilter'] as core.String
            : null,
        isNlQuery: json_.containsKey('isNlQuery')
            ? json_['isNlQuery'] as core.bool
            : null,
        propertyFilter: json_.containsKey('propertyFilter')
            ? (json_['propertyFilter'] as core.List)
                .map((value) =>
                    GoogleCloudContentwarehouseV1PropertyFilter.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        queryContext: json_.containsKey('queryContext')
            ? (json_['queryContext'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        timeFilters: json_.containsKey('timeFilters')
            ? (json_['timeFilters'] as core.List)
                .map((value) =>
                    GoogleCloudContentwarehouseV1TimeFilter.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );