GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer.fromJson constructor

GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer.fromJson(
    core.Map json_)
    : this(
        answerText: json_.containsKey('answerText')
            ? json_['answerText'] as core.String
            : null,
        faqSource: json_.containsKey('faqSource')
            ? GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource
                .fromJson(
                    json_['faqSource'] as core.Map<core.String, core.dynamic>)
            : null,
        generativeSource: json_.containsKey('generativeSource')
            ? GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource
                .fromJson(json_['generativeSource']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );