GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.fromJson constructor

GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.fromJson(
    core.Map json_)
    : this(
        channelTag: json_.containsKey('channelTag')
            ? json_['channelTag'] as core.int
            : null,
        confidence: json_.containsKey('confidence')
            ? (json_['confidence'] as core.num).toDouble()
            : null,
        dialogflowSegmentMetadata: json_
                .containsKey('dialogflowSegmentMetadata')
            ? GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
                .fromJson(json_['dialogflowSegmentMetadata']
                    as core.Map<core.String, core.dynamic>)
            : null,
        languageCode: json_.containsKey('languageCode')
            ? json_['languageCode'] as core.String
            : null,
        messageTime: json_.containsKey('messageTime')
            ? json_['messageTime'] as core.String
            : null,
        segmentParticipant: json_.containsKey('segmentParticipant')
            ? GoogleCloudContactcenterinsightsV1ConversationParticipant
                .fromJson(json_['segmentParticipant']
                    as core.Map<core.String, core.dynamic>)
            : null,
        sentiment: json_.containsKey('sentiment')
            ? GoogleCloudContactcenterinsightsV1SentimentData.fromJson(
                json_['sentiment'] as core.Map<core.String, core.dynamic>)
            : null,
        text: json_.containsKey('text') ? json_['text'] as core.String : null,
        words: json_.containsKey('words')
            ? (json_['words'] as core.List)
                .map((value) =>
                    GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );