GoogleCloudRetailV2CompletionConfig.fromJson constructor

GoogleCloudRetailV2CompletionConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2CompletionConfig.fromJson(core.Map json_)
    : this(
        allowlistInputConfig: json_.containsKey('allowlistInputConfig')
            ? GoogleCloudRetailV2CompletionDataInputConfig.fromJson(
                json_['allowlistInputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        autoLearning: json_.containsKey('autoLearning')
            ? json_['autoLearning'] as core.bool
            : null,
        denylistInputConfig: json_.containsKey('denylistInputConfig')
            ? GoogleCloudRetailV2CompletionDataInputConfig.fromJson(
                json_['denylistInputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
        lastAllowlistImportOperation:
            json_.containsKey('lastAllowlistImportOperation')
                ? json_['lastAllowlistImportOperation'] as core.String
                : null,
        lastDenylistImportOperation:
            json_.containsKey('lastDenylistImportOperation')
                ? json_['lastDenylistImportOperation'] as core.String
                : null,
        lastSuggestionsImportOperation:
            json_.containsKey('lastSuggestionsImportOperation')
                ? json_['lastSuggestionsImportOperation'] as core.String
                : null,
        matchingOrder: json_.containsKey('matchingOrder')
            ? json_['matchingOrder'] as core.String
            : null,
        maxSuggestions: json_.containsKey('maxSuggestions')
            ? json_['maxSuggestions'] as core.int
            : null,
        minPrefixLength: json_.containsKey('minPrefixLength')
            ? json_['minPrefixLength'] as core.int
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        suggestionsInputConfig: json_.containsKey('suggestionsInputConfig')
            ? GoogleCloudRetailV2CompletionDataInputConfig.fromJson(
                json_['suggestionsInputConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );