PrivateTweetMetrics constructor

  1. @JsonSerializable(includeIfNull: false)
const PrivateTweetMetrics({
  1. required int impressionCount,
  2. @JsonKey(name: 'user_profile_clicks') required int profileClickCount,
  3. @JsonKey(name: 'url_link_clicks') int? linkClickCount,
})

Implementation

@JsonSerializable(includeIfNull: false)
const factory PrivateTweetMetrics({
  /// 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 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,
}) = _PrivateTweetMetrics;