GoogleCloudDialogflowV2Message.fromJson constructor

GoogleCloudDialogflowV2Message.fromJson(
  1. Map json_
)

Implementation

GoogleCloudDialogflowV2Message.fromJson(core.Map json_)
  : this(
      content: json_['content'] as core.String?,
      createTime: json_['createTime'] as core.String?,
      languageCode: json_['languageCode'] as core.String?,
      messageAnnotation:
          json_.containsKey('messageAnnotation')
              ? GoogleCloudDialogflowV2MessageAnnotation.fromJson(
                json_['messageAnnotation']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
      name: json_['name'] as core.String?,
      participant: json_['participant'] as core.String?,
      participantRole: json_['participantRole'] as core.String?,
      sendTime: json_['sendTime'] as core.String?,
      sentimentAnalysis:
          json_.containsKey('sentimentAnalysis')
              ? GoogleCloudDialogflowV2SentimentAnalysisResult.fromJson(
                json_['sentimentAnalysis']
                    as core.Map<core.String, core.dynamic>,
              )
              : null,
    );