GoogleCloudDialogflowV2ArticleAnswer.fromJson constructor

GoogleCloudDialogflowV2ArticleAnswer.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2ArticleAnswer.fromJson(core.Map json_)
    : this(
        answerRecord: json_.containsKey('answerRecord')
            ? json_['answerRecord'] as core.String
            : null,
        confidence: json_.containsKey('confidence')
            ? (json_['confidence'] as core.num).toDouble()
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        snippets: json_.containsKey('snippets')
            ? (json_['snippets'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );