GoogleCloudContactcenterinsightsV1SmartReplyData.fromJson constructor

GoogleCloudContactcenterinsightsV1SmartReplyData.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1SmartReplyData.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,
        reply:
            json_.containsKey('reply') ? json_['reply'] as core.String : null,
      );