Mention constructor
- @JsonSerializable(includeIfNull: false)
const
Mention(
{ - String? id,
- required String username,
- required int start,
- 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;