Mention constructor

  1. @JsonSerializable(includeIfNull: false)
const Mention({
  1. String? id,
  2. required String username,
  3. required int start,
  4. required int end,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory Mention({
  /// The user id that created the mentions.
  String? id,

  /// The part of text recognized as a user mention.
  ///
  /// You can obtain the expanded object in includes.users by adding
  /// `TweetExpansion.entitiesMentionsUsername` in the request's query
  /// parameter.
  required String username,

  /// The start position (zero-based) of the recognized user mention within
  /// the Tweet. All start indices are inclusive.
  required int start,

  /// The end position (zero-based) of the recognized user mention within t
  /// he Tweet. This end index is exclusive.
  required int end,
}) = _Mention;