GoogleCloudRecommendationengineV1beta1CatalogItem.fromJson constructor

GoogleCloudRecommendationengineV1beta1CatalogItem.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRecommendationengineV1beta1CatalogItem.fromJson(core.Map json_)
    : this(
        categoryHierarchies: json_.containsKey('categoryHierarchies')
            ? (json_['categoryHierarchies'] as core.List)
                .map((value) =>
                    GoogleCloudRecommendationengineV1beta1CatalogItemCategoryHierarchy
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        itemAttributes: json_.containsKey('itemAttributes')
            ? GoogleCloudRecommendationengineV1beta1FeatureMap.fromJson(
                json_['itemAttributes']
                    as core.Map<core.String, core.dynamic>)
            : null,
        itemGroupId: json_.containsKey('itemGroupId')
            ? json_['itemGroupId'] as core.String
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        productMetadata: json_.containsKey('productMetadata')
            ? GoogleCloudRecommendationengineV1beta1ProductCatalogItem
                .fromJson(json_['productMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );