toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (channelTag != null) 'channelTag': channelTag!,
  if (confidence != null) 'confidence': confidence!,
  if (dialogflowSegmentMetadata != null)
    'dialogflowSegmentMetadata': dialogflowSegmentMetadata!,
  if (languageCode != null) 'languageCode': languageCode!,
  if (messageTime != null) 'messageTime': messageTime!,
  if (segmentParticipant != null) 'segmentParticipant': segmentParticipant!,
  if (sentiment != null) 'sentiment': sentiment!,
  if (text != null) 'text': text!,
  if (words != null) 'words': words!,
};