TweetV1Response class

docs are from https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object Tweets are the basic atomic building block of all things Twitter. Tweets are also known as “status updates.” The Tweet object has a long list of ‘root-level’ attributes, including fundamental attributes such as id, created_at, and text. Tweet objects are also the ‘parent’ object to several child objects. Tweet child objects include user, entities, and extended_entities. Tweets that are geo-tagged will have a place child object.

To parse this JSON data, do: final tweet = tweetFromJson(jsonString);

Constructors

TweetV1Response({required String createdAt, required double id, required String idStr, TweetV1Response? quotedStatus, TweetV1Response? retweetedStatus, required String text, TweetEntities entities = const TweetEntities.empty(), TweetEntities extendedEntities = const TweetEntities.empty(), required User user, bool isQuoteStatus = false, bool? favorited, int? favoriteCount, bool? replied, int? replyCount, List<int>? displayTextRange})
TweetV1Response.fromJson(Map<String, dynamic> json)
factory
TweetV1Response.fromRawJson(String str)
factory

Properties

createdAt String
UTC time when this Tweet was created.
getter/setter pair
displayTextRange List<int>?
Nullable. List of two unicode code point indices, identifying the inclusive start and exclusive end of the displayable content of the Tweet.
getter/setter pair
entities TweetEntities
Entities which have been parsed out of the text of the Tweet.
getter/setter pair
extendedEntities TweetEntities
Additional entities such as multi photos, animated gifs and video.
getter/setter pair
favoriteCount int?
The number of favorites(hearts)
getter/setter pair
favorited bool?
Nullable. Perspectival. Indicates whether this Tweet has been favorited by the authenticating user.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id double
The integer representation of the unique identifier for this Tweet. This number is greater than 53 bits and some programming languages may have difficulty/silent defects in interpreting it. Using a signed 64 bit integer for storing this identifier is safe. Use id_str for fetching the identifier to stay on the safe side. See Twitter IDs, JSON andSnowflake.
getter/setter pair
idStr String
The string representation of the unique identifier for this Tweet. Implementations should use this rather than the large integer in id
getter/setter pair
isQuoteStatus bool
Indicates whether this is a Quoted Tweet.
getter/setter pair
quotedStatus TweetV1Response?
This field only surfaces when the Tweet is a quote Tweet. This attribute contains the Tweet object of the original Tweet that was quoted.
getter/setter pair
replied bool?
Nullable. Perspectival. Indicates whether this Tweet has been replied by to
getter/setter pair
replyCount int?
The number of replies
getter/setter pair
retweetedStatus TweetV1Response?
Users can amplify the broadcast of Tweets authored by other users by retweeting. Retweets can be distinguished from typical Tweets by the existence of a retweeted_status attribute. This attribute contains a representation of the original Tweet that was retweeted. Note that retweets of retweets do not show representations of the intermediary retweet, but only the original Tweet. (Users can also unretweet a retweet they created by deleting their retweet.)
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
text String
The actual UTF-8 text of the status update. See twitter-text for details on what is currently considered valid characters.
getter/setter pair
user User
The user who posted this Tweet. Perspectival attributes embedded within this object are unreliable. See Why are embedded objects stale or inaccurate?.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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