GoogleCloudRetailV2PredictResponse.fromJson constructor
GoogleCloudRetailV2PredictResponse.fromJson(
- Map json_
Implementation
GoogleCloudRetailV2PredictResponse.fromJson(core.Map json_)
: this(
attributionToken: json_.containsKey('attributionToken')
? json_['attributionToken'] as core.String
: null,
missingIds: json_.containsKey('missingIds')
? (json_['missingIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
results: json_.containsKey('results')
? (json_['results'] as core.List)
.map((value) =>
GoogleCloudRetailV2PredictResponsePredictionResult
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
validateOnly: json_.containsKey('validateOnly')
? json_['validateOnly'] as core.bool
: null,
);