GoogleCloudRetailV2SearchResponseFacet.fromJson constructor

GoogleCloudRetailV2SearchResponseFacet.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2SearchResponseFacet.fromJson(core.Map json_)
    : this(
        dynamicFacet: json_.containsKey('dynamicFacet')
            ? json_['dynamicFacet'] as core.bool
            : null,
        key: json_.containsKey('key') ? json_['key'] as core.String : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2SearchResponseFacetFacetValue.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );