GoogleCloudDialogflowV2SearchKnowledgeAnswer.fromJson constructor

GoogleCloudDialogflowV2SearchKnowledgeAnswer.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2SearchKnowledgeAnswer.fromJson(core.Map json_)
    : this(
        answer: json_.containsKey('answer')
            ? json_['answer'] as core.String
            : null,
        answerRecord: json_.containsKey('answerRecord')
            ? json_['answerRecord'] as core.String
            : null,
        answerSources: json_.containsKey('answerSources')
            ? (json_['answerSources'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        answerType: json_.containsKey('answerType')
            ? json_['answerType'] as core.String
            : null,
      );