SocialEngagement class

Represents social media engagement metrics for a URL

Constructors

SocialEngagement({int? likes, int? shares, int? comments, int? totalEngagement, Map<String, dynamic>? facebook, Map<String, dynamic>? twitter, Map<String, dynamic>? linkedin, Map<String, dynamic>? pinterest, Map<String, dynamic>? reddit, Map<String, dynamic>? other})
Creates a new instance of SocialEngagement
SocialEngagement.fromJson(Map<String, dynamic> json)
Creates an instance from a JSON map
factory

Properties

comments int?
Number of comments
final
facebook Map<String, dynamic>?
Facebook engagement metrics
final
hashCode int
The hash code for this object.
no setterinherited
likes int?
Number of likes or reactions
final
linkedin Map<String, dynamic>?
LinkedIn engagement metrics
final
other Map<String, dynamic>?
Additional platform-specific engagement metrics
final
pinterest Map<String, dynamic>?
Pinterest engagement metrics
final
reddit Map<String, dynamic>?
Reddit engagement metrics
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shares int?
Number of shares or retweets
final
totalEngagement int?
Total engagement (sum of likes, shares, and comments)
final
twitter Map<String, dynamic>?
Twitter engagement metrics
final

Methods

copyWith({int? likes, int? shares, int? comments, int? totalEngagement, Map<String, dynamic>? facebook, Map<String, dynamic>? twitter, Map<String, dynamic>? linkedin, Map<String, dynamic>? pinterest, Map<String, dynamic>? reddit, Map<String, dynamic>? other}) SocialEngagement
Creates a copy of this instance with the specified attributes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this instance to a JSON map
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited