GoogleCloudContactcenterinsightsV1AnnotatorSelector.fromJson constructor

GoogleCloudContactcenterinsightsV1AnnotatorSelector.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1AnnotatorSelector.fromJson(core.Map json_)
    : this(
        issueModels: json_.containsKey('issueModels')
            ? (json_['issueModels'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        phraseMatchers: json_.containsKey('phraseMatchers')
            ? (json_['phraseMatchers'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        runEntityAnnotator: json_.containsKey('runEntityAnnotator')
            ? json_['runEntityAnnotator'] as core.bool
            : null,
        runIntentAnnotator: json_.containsKey('runIntentAnnotator')
            ? json_['runIntentAnnotator'] as core.bool
            : null,
        runInterruptionAnnotator:
            json_.containsKey('runInterruptionAnnotator')
                ? json_['runInterruptionAnnotator'] as core.bool
                : null,
        runIssueModelAnnotator: json_.containsKey('runIssueModelAnnotator')
            ? json_['runIssueModelAnnotator'] as core.bool
            : null,
        runPhraseMatcherAnnotator:
            json_.containsKey('runPhraseMatcherAnnotator')
                ? json_['runPhraseMatcherAnnotator'] as core.bool
                : null,
        runSentimentAnnotator: json_.containsKey('runSentimentAnnotator')
            ? json_['runSentimentAnnotator'] as core.bool
            : null,
        runSilenceAnnotator: json_.containsKey('runSilenceAnnotator')
            ? json_['runSilenceAnnotator'] as core.bool
            : null,
        runSummarizationAnnotator:
            json_.containsKey('runSummarizationAnnotator')
                ? json_['runSummarizationAnnotator'] as core.bool
                : null,
        summarizationConfig: json_.containsKey('summarizationConfig')
            ? GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig
                .fromJson(json_['summarizationConfig']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );