GoogleCloudRetailV2SearchRequestFacetSpec.fromJson constructor

GoogleCloudRetailV2SearchRequestFacetSpec.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2SearchRequestFacetSpec.fromJson(core.Map json_)
    : this(
        enableDynamicPosition: json_.containsKey('enableDynamicPosition')
            ? json_['enableDynamicPosition'] as core.bool
            : null,
        excludedFilterKeys: json_.containsKey('excludedFilterKeys')
            ? (json_['excludedFilterKeys'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        facetKey: json_.containsKey('facetKey')
            ? GoogleCloudRetailV2SearchRequestFacetSpecFacetKey.fromJson(
                json_['facetKey'] as core.Map<core.String, core.dynamic>)
            : null,
        limit: json_.containsKey('limit') ? json_['limit'] as core.int : null,
      );