GoogleCloudContactcenterinsightsV1ArticleSuggestionData.fromJson constructor

GoogleCloudContactcenterinsightsV1ArticleSuggestionData.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1ArticleSuggestionData.fromJson(
    core.Map json_)
    : this(
        confidenceScore: json_.containsKey('confidenceScore')
            ? (json_['confidenceScore'] as core.num).toDouble()
            : null,
        metadata: json_.containsKey('metadata')
            ? (json_['metadata'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        queryRecord: json_.containsKey('queryRecord')
            ? json_['queryRecord'] as core.String
            : null,
        source: json_.containsKey('source')
            ? json_['source'] as core.String
            : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );