OrganicMediaMetrics constructor

const OrganicMediaMetrics({
  1. @JsonKey(name: 'playback_0_count') required int playback0Count,
  2. @JsonKey(name: 'playback_25_count') required int playback25Count,
  3. @JsonKey(name: 'playback_50_count') required int playback50Count,
  4. @JsonKey(name: 'playback_75_count') required int playback75Count,
  5. @JsonKey(name: 'playback_100_count') required int playback100Count,
  6. required int viewCount,
})

Implementation

const factory OrganicMediaMetrics({
  /// The number of users who played through to each quartile in a video.
  ///
  /// This reflects the number of quartile views across all Tweets in which
  /// the given video has been posted.
  @JsonKey(name: 'playback_0_count') required int playback0Count,

  /// The number of users who played through to each quartile in a video.
  ///
  /// This reflects the number of quartile views across all Tweets in which
  /// the given video has been posted.
  @JsonKey(name: 'playback_25_count') required int playback25Count,

  /// The number of users who played through to each quartile in a video.
  ///
  /// This reflects the number of quartile views across all Tweets in which
  /// the given video has been posted.
  @JsonKey(name: 'playback_50_count') required int playback50Count,

  /// The number of users who played through to each quartile in a video.
  ///
  /// This reflects the number of quartile views across all Tweets in which
  /// the given video has been posted.
  @JsonKey(name: 'playback_75_count') required int playback75Count,

  /// The number of users who played through to each quartile in a video.
  ///
  /// This reflects the number of quartile views across all Tweets in which
  /// the given video has been posted.
  @JsonKey(name: 'playback_100_count') required int playback100Count,

  /// A count of how many times the video included in the Tweet has been
  /// viewed.
  ///
  /// This is the number of video views aggregated across all Tweets in which
  /// the given video has been posted. That means that the metric includes
  /// the combined views from any instance where the video has been Retweeted
  /// or re-posted in separate Tweets.
  required int viewCount,
}) = _OrganicMediaMetrics;