GoogleCloudRetailV2SearchResponse.fromJson constructor
GoogleCloudRetailV2SearchResponse.fromJson(
- Map json_
Implementation
GoogleCloudRetailV2SearchResponse.fromJson(core.Map json_)
: this(
appliedControls: json_.containsKey('appliedControls')
? (json_['appliedControls'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
attributionToken: json_.containsKey('attributionToken')
? json_['attributionToken'] as core.String
: null,
correctedQuery: json_.containsKey('correctedQuery')
? json_['correctedQuery'] as core.String
: null,
experimentInfo: json_.containsKey('experimentInfo')
? (json_['experimentInfo'] as core.List)
.map((value) => GoogleCloudRetailV2ExperimentInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
facets: json_.containsKey('facets')
? (json_['facets'] as core.List)
.map((value) =>
GoogleCloudRetailV2SearchResponseFacet.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
invalidConditionBoostSpecs: json_
.containsKey('invalidConditionBoostSpecs')
? (json_['invalidConditionBoostSpecs'] as core.List)
.map((value) =>
GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
nextPageToken: json_.containsKey('nextPageToken')
? json_['nextPageToken'] as core.String
: null,
queryExpansionInfo: json_.containsKey('queryExpansionInfo')
? GoogleCloudRetailV2SearchResponseQueryExpansionInfo.fromJson(
json_['queryExpansionInfo']
as core.Map<core.String, core.dynamic>)
: null,
redirectUri: json_.containsKey('redirectUri')
? json_['redirectUri'] as core.String
: null,
results: json_.containsKey('results')
? (json_['results'] as core.List)
.map((value) =>
GoogleCloudRetailV2SearchResponseSearchResult.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
totalSize: json_.containsKey('totalSize')
? json_['totalSize'] as core.int
: null,
);