GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.fromJson constructor

GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata.fromJson(
    core.Map json_)
    : this(
        annotations: json_.containsKey('annotations')
            ? (json_['annotations'] as core.List)
                .map((value) =>
                    GoogleCloudContactcenterinsightsV1CallAnnotation.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        entities: json_.containsKey('entities')
            ? (json_['entities'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudContactcenterinsightsV1Entity.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        intents: json_.containsKey('intents')
            ? (json_['intents'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudContactcenterinsightsV1Intent.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        issueModelResult: json_.containsKey('issueModelResult')
            ? GoogleCloudContactcenterinsightsV1IssueModelResult.fromJson(
                json_['issueModelResult']
                    as core.Map<core.String, core.dynamic>)
            : null,
        phraseMatchers: json_.containsKey('phraseMatchers')
            ? (json_['phraseMatchers'] as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  GoogleCloudContactcenterinsightsV1PhraseMatchData.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        sentiments: json_.containsKey('sentiments')
            ? (json_['sentiments'] as core.List)
                .map((value) =>
                    GoogleCloudContactcenterinsightsV1ConversationLevelSentiment
                        .fromJson(
                            value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        silence: json_.containsKey('silence')
            ? GoogleCloudContactcenterinsightsV1ConversationLevelSilence
                .fromJson(
                    json_['silence'] as core.Map<core.String, core.dynamic>)
            : null,
      );