OrganicTweetMetrics constructor

  1. @JsonSerializable(includeIfNull: false)
const OrganicTweetMetrics({
  1. required int impressionCount,
  2. required int likeCount,
  3. required int retweetCount,
  4. required int replyCount,
  5. @JsonKey(name: 'user_profile_clicks') required int profileClickCount,
  6. @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;