GoogleCloudRetailV2RuleReplacementAction.fromJson constructor

GoogleCloudRetailV2RuleReplacementAction.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2RuleReplacementAction.fromJson(core.Map json_)
    : this(
        queryTerms: json_.containsKey('queryTerms')
            ? (json_['queryTerms'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        replacementTerm: json_.containsKey('replacementTerm')
            ? json_['replacementTerm'] as core.String
            : null,
        term: json_.containsKey('term') ? json_['term'] as core.String : null,
      );