GoogleCloudRecommendationengineV1beta1ProductEventDetail.fromJson constructor
GoogleCloudRecommendationengineV1beta1ProductEventDetail.fromJson(
- Map json_
Implementation
GoogleCloudRecommendationengineV1beta1ProductEventDetail.fromJson(
core.Map json_)
: this(
cartId: json_.containsKey('cartId')
? json_['cartId'] as core.String
: null,
listId: json_.containsKey('listId')
? json_['listId'] as core.String
: null,
pageCategories: json_.containsKey('pageCategories')
? (json_['pageCategories'] as core.List)
.map((value) =>
GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
productDetails: json_.containsKey('productDetails')
? (json_['productDetails'] as core.List)
.map((value) =>
GoogleCloudRecommendationengineV1beta1ProductDetail
.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
purchaseTransaction: json_.containsKey('purchaseTransaction')
? GoogleCloudRecommendationengineV1beta1PurchaseTransaction
.fromJson(json_['purchaseTransaction']
as core.Map<core.String, core.dynamic>)
: null,
searchQuery: json_.containsKey('searchQuery')
? json_['searchQuery'] as core.String
: null,
);