toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (displayName != null) 'displayName': displayName!,
if (metadata != null) 'metadata': metadata!,
if (salience != null) 'salience': salience!,
if (sentiment != null) 'sentiment': sentiment!,
if (type != null) 'type': type!,
};