GoogleCloudContactcenterinsightsV1Entity.fromJson constructor

GoogleCloudContactcenterinsightsV1Entity.fromJson(
  1. Map json_
)

Implementation

GoogleCloudContactcenterinsightsV1Entity.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : 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,
        salience: json_.containsKey('salience')
            ? (json_['salience'] as core.num).toDouble()
            : null,
        sentiment: json_.containsKey('sentiment')
            ? GoogleCloudContactcenterinsightsV1SentimentData.fromJson(
                json_['sentiment'] as core.Map<core.String, core.dynamic>)
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );