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