GoogleCloudRetailV2Condition.fromJson constructor

GoogleCloudRetailV2Condition.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2Condition.fromJson(core.Map json_)
    : this(
        activeTimeRange: json_.containsKey('activeTimeRange')
            ? (json_['activeTimeRange'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2ConditionTimeRange.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pageCategories: json_.containsKey('pageCategories')
            ? (json_['pageCategories'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        queryTerms: json_.containsKey('queryTerms')
            ? (json_['queryTerms'] as core.List)
                .map((value) =>
                    GoogleCloudRetailV2ConditionQueryTerm.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );