GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.fromJson constructor
GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.fromJson(
- Map json_
Implementation
GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment.fromJson(
core.Map json_)
: this(
channelTag: json_['channelTag'] as core.int?,
confidence: (json_['confidence'] as core.num?)?.toDouble(),
dialogflowSegmentMetadata: json_
.containsKey('dialogflowSegmentMetadata')
? GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
.fromJson(json_['dialogflowSegmentMetadata']
as core.Map<core.String, core.dynamic>)
: null,
languageCode: json_['languageCode'] as core.String?,
messageTime: json_['messageTime'] as core.String?,
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_['text'] as core.String?,
words: (json_['words'] as core.List?)
?.map((value) =>
GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo
.fromJson(value as core.Map<core.String, core.dynamic>))
.toList(),
);