GoogleCloudRetailV2IntentClassificationConfig.fromJson constructor

GoogleCloudRetailV2IntentClassificationConfig.fromJson(
  1. Map json_
)

Implementation

GoogleCloudRetailV2IntentClassificationConfig.fromJson(core.Map json_)
  : this(
      blocklistKeywords: (json_['blocklistKeywords'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      disabledIntentTypes: (json_['disabledIntentTypes'] as core.List?)
          ?.map((value) => value as core.String)
          .toList(),
      example: (json_['example'] as core.List?)
          ?.map(
            (value) =>
                GoogleCloudRetailV2IntentClassificationConfigExample.fromJson(
                  value as core.Map<core.String, core.dynamic>,
                ),
          )
          .toList(),
      inlineSource: json_.containsKey('inlineSource')
          ? GoogleCloudRetailV2IntentClassificationConfigInlineSource.fromJson(
              json_['inlineSource'] as core.Map<core.String, core.dynamic>,
            )
          : null,
      modelPreamble: json_['modelPreamble'] as core.String?,
    );