PostPlatformMetrics class
One platform's numbers for a post. A null field means the platform does not report that metric.
Constructors
-
PostPlatformMetrics({int? impressions, int? reach, int? engagements, int? likes, int? comments, int? reposts, int? clicks, int? saves, int? videoViews, int? watchTimeMs, int? avgWatchTimeMs, int? follows, Map<
String, dynamic> reactionsBreakdown = const {}, DateTime? fetchedAt}) -
Creates a metrics block.
const
-
PostPlatformMetrics.fromJson(Map<
String, dynamic> json) -
Reads a metrics block.
factory
Properties
- avgWatchTimeMs → int?
-
Average watch time per view.
final
- clicks → int?
-
Link clicks.
final
- comments → int?
-
Comments.
final
- engagements → int?
-
Every interaction, summed.
final
- fetchedAt → DateTime?
-
When these numbers were pulled.
final
- follows → int?
-
Follows the post drove.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- impressions → int?
-
Times the post was shown.
final
- likes → int?
-
Likes.
final
- reach → int?
-
Unique accounts that saw it.
final
-
reactionsBreakdown
→ Map<
String, dynamic> -
Per-reaction counts, where the platform breaks them out.
final
- reposts → int?
-
Reposts.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- saves → int?
-
Saves or bookmarks.
final
-
Shares.
final
- videoViews → int?
-
Video views.
final
- watchTimeMs → int?
-
Total watch time.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited