GoogleCloudRetailV2Rule.fromJson constructor

GoogleCloudRetailV2Rule.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2Rule.fromJson(core.Map json_)
    : this(
        boostAction: json_.containsKey('boostAction')
            ? GoogleCloudRetailV2RuleBoostAction.fromJson(
                json_['boostAction'] as core.Map<core.String, core.dynamic>)
            : null,
        condition: json_.containsKey('condition')
            ? GoogleCloudRetailV2Condition.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        doNotAssociateAction: json_.containsKey('doNotAssociateAction')
            ? GoogleCloudRetailV2RuleDoNotAssociateAction.fromJson(
                json_['doNotAssociateAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        filterAction: json_.containsKey('filterAction')
            ? GoogleCloudRetailV2RuleFilterAction.fromJson(
                json_['filterAction'] as core.Map<core.String, core.dynamic>)
            : null,
        forceReturnFacetAction: json_.containsKey('forceReturnFacetAction')
            ? GoogleCloudRetailV2RuleForceReturnFacetAction.fromJson(
                json_['forceReturnFacetAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        ignoreAction: json_.containsKey('ignoreAction')
            ? GoogleCloudRetailV2RuleIgnoreAction.fromJson(
                json_['ignoreAction'] as core.Map<core.String, core.dynamic>)
            : null,
        onewaySynonymsAction: json_.containsKey('onewaySynonymsAction')
            ? GoogleCloudRetailV2RuleOnewaySynonymsAction.fromJson(
                json_['onewaySynonymsAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        redirectAction: json_.containsKey('redirectAction')
            ? GoogleCloudRetailV2RuleRedirectAction.fromJson(
                json_['redirectAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        removeFacetAction: json_.containsKey('removeFacetAction')
            ? GoogleCloudRetailV2RuleRemoveFacetAction.fromJson(
                json_['removeFacetAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        replacementAction: json_.containsKey('replacementAction')
            ? GoogleCloudRetailV2RuleReplacementAction.fromJson(
                json_['replacementAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
        twowaySynonymsAction: json_.containsKey('twowaySynonymsAction')
            ? GoogleCloudRetailV2RuleTwowaySynonymsAction.fromJson(
                json_['twowaySynonymsAction']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );