OrganicTweetMetrics constructor
- @JsonSerializable(includeIfNull: false)
const
OrganicTweetMetrics(
{ - required int impressionCount,
- required int likeCount,
- required int replyCount,
- @JsonKey(name: 'user_profile_clicks') required int profileClickCount,
- @JsonKey(name: 'url_link_clicks') int? linkClickCount,
})
Implementation
@JsonSerializable(includeIfNull: false)
const factory OrganicTweetMetrics({
/// A count of how many times the Tweet has been viewed
/// (not unique by user). A view is counted if any part of the Tweet is
/// visible on the screen.
required int impressionCount,
/// A count of how many times the Tweet has been liked.
required int likeCount,
/// A count of how many times the Tweet has been Retweeted. Please note:
/// This does not include Quote Tweets.
required int retweetCount,
/// A count of how many times the Tweet has been replied to.
required int replyCount,
/// A count of the number of times a user clicks the following portions of
/// a Tweet: display name, user name, profile picture.
@JsonKey(name: 'user_profile_clicks') required int profileClickCount,
/// A count of the number of times a user clicks on a URL link or URL
/// preview card in a Tweet.
@JsonKey(name: 'url_link_clicks') int? linkClickCount,
}) = _OrganicTweetMetrics;