GoogleCloudRetailV2CatalogAttributeFacetConfig.fromJson constructor

GoogleCloudRetailV2CatalogAttributeFacetConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2CatalogAttributeFacetConfig.fromJson(core.Map json_)
    : this(
        facetIntervals: json_.containsKey('facetIntervals')
            ? (json_['facetIntervals'] as core.List)
                .map((value) => GoogleCloudRetailV2Interval.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        ignoredFacetValues: json_.containsKey('ignoredFacetValues')
            ? (json_['ignoredFacetValues'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        mergedFacet: json_.containsKey('mergedFacet')
            ? GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet
                .fromJson(json_['mergedFacet']
                    as core.Map<core.String, core.dynamic>)
            : null,
        mergedFacetValues: json_.containsKey('mergedFacetValues')
            ? (json_['mergedFacetValues'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rerankConfig: json_.containsKey('rerankConfig')
            ? GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig
                .fromJson(json_['rerankConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );