GoogleCloudRetailV2RuleOnewaySynonymsAction.fromJson constructor

GoogleCloudRetailV2RuleOnewaySynonymsAction.fromJson(
  1. Map json_
)

Implementation

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