GoogleCloudDialogflowV2FaqAnswer.fromJson constructor

GoogleCloudDialogflowV2FaqAnswer.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2FaqAnswer.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,
        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,
        question: json_.containsKey('question')
            ? json_['question'] as core.String
            : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
      );