GoogleCloudDialogflowV2SummarizationContext.fromJson constructor
GoogleCloudDialogflowV2SummarizationContext.fromJson(
- Map json_
Implementation
GoogleCloudDialogflowV2SummarizationContext.fromJson(core.Map json_)
: this(
fewShotExamples:
(json_['fewShotExamples'] as core.List?)
?.map(
(value) => GoogleCloudDialogflowV2FewShotExample.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
outputLanguageCode: json_['outputLanguageCode'] as core.String?,
summarizationSections:
(json_['summarizationSections'] as core.List?)
?.map(
(value) =>
GoogleCloudDialogflowV2SummarizationSection.fromJson(
value as core.Map<core.String, core.dynamic>,
),
)
.toList(),
version: json_['version'] as core.String?,
);