GoogleCloudDialogflowV2SearchKnowledgeResponse.fromJson constructor

GoogleCloudDialogflowV2SearchKnowledgeResponse.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2SearchKnowledgeResponse.fromJson(core.Map json_)
    : this(
        answers: json_.containsKey('answers')
            ? (json_['answers'] as core.List)
                .map((value) =>
                    GoogleCloudDialogflowV2SearchKnowledgeAnswer.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        rewrittenQuery: json_.containsKey('rewrittenQuery')
            ? json_['rewrittenQuery'] as core.String
            : null,
      );