TrendingEntry class
The list entry view for trending items. Returns just enough to show the item on the trending page.
- Annotations
-
- @JsonSerializable()
Constructors
- TrendingEntry()
-
TrendingEntry.fromJson(Map<
String, dynamic> json) -
factory
Properties
- creationDate ↔ String?
-
If the entry has a date at which it was created, this is that date.
getter/setter pair
- displayName ↔ String?
-
The localized "display name/article title/'primary localized identifier'" of the entity.
getter/setter pair
- endDate ↔ String?
-
getter/setter pair
- entityType ↔ TrendingEntryType?
-
An enum - unfortunately - dictating all of the possible kinds of trending items that you might get in your result set, in case you want to do custom rendering or call to get the details of the item.
getter/setter pair
- featureImage ↔ String?
-
If isFeatured, this image will be populated with whatever the featured image is. Note that this will likely be a very large image, so don't use it all the time.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier ↔ String?
-
We don't know whether the identifier will be a string, a uint, or a long... so we're going to cast it all to a string. But either way, we need any trending item created to have a single unique identifier for its type.
getter/setter pair
- image ↔ String?
-
getter/setter pair
- isFeatured ↔ bool?
-
getter/setter pair
-
items
↔ List<
TrendingEntry> ? -
If the item is of entityType TrendingEntryType.Container, it may have items - also Trending Entries - contained within it. This is the ordered list of those to display under the Container's header.
getter/setter pair
- link ↔ String?
-
getter/setter pair
- mp4Video ↔ String?
-
If this is populated, the entry has a related MP4 video to show. I am 100% certain I am going to regret putting this directly on TrendingEntry, but it will work so yolo
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDate ↔ String?
-
getter/setter pair
- tagline ↔ String?
-
If the entity has a localized tagline/subtitle/motto/whatever, that is found here.
getter/setter pair
- webmVideo ↔ String?
-
If this is populated, the entry has a related WebM video to show. I am 100% certain I am going to regret putting this directly on TrendingEntry, but it will work so yolo
getter/setter pair
- weight ↔ double?
-
The weighted score of this trending item.
getter/setter pair
Methods
-
asyncToJson(
) → Future< Map< String, dynamic> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
asyncFromJson(
Map< String, dynamic> json) → Future<TrendingEntry>