TweetContextAnnotation constructor

  1. @JsonSerializable(includeIfNull: false)
const TweetContextAnnotation({
  1. required String id,
  2. required String name,
  3. String? description,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory TweetContextAnnotation({
  /// Domain: Contains the numeric value of the domain.
  ///
  /// Entity: Unique value which correlates to an explicitly mentioned Person,
  /// Place, Product or Organization
  required String id,

  /// Domain: Domain name based on the Tweet text.
  ///
  /// Entity: Name or reference of entity referenced in the Tweet.
  required String name,

  /// Domain: Long form description of domain classification.
  ///
  /// Entity: Additional information regarding referenced entity.
  String? description,
}) = _TweetContextAnnotation;